char * trimall( char *str )
{
char *pstart, *ptr;
if ( str == NULL )
return NULL;
pstart = ptr = str;
while ( *ptr != 0x0 )
if ( *( ( unsigned char * )ptr ) == 0x20 )
ptr ++;
else
*str ++ = *ptr ++;
*str = 0x0;
return pstart;
}
阅读(782) | 评论(0) | 转发(0) |