// 去掉字符串前部的空格
void ltrim(char *s)
{int l=0,p=0,k=0;
l = strlen(s);
if( l == 0 ) return;
p = 0;
while( s[p] == ' ' || s[p] == '\t' ) p++;
if( p == 0 ) return;
while( s[k] != '\0') s[k++] = s[p++];
return;
}
void rtrim(char *s)
{
int l=0,p=0;
l = strlen(s);
if( l == 0 ) return;
p = l -1;
while( s[p] == ' ' || s[p] == '\t' ) {
s[p--] = '\0';
if( p < 0 ) break;
}
return;
}