删除字符串中的空格,字符串最长可为99999999999
<code>
int DelSpace(char *str)
{
int i = 0;
char *pst = str;
char *lst = str;
while(*pst != '/0')
{
if(*pst != ' ')
{
*(lst + i) = *pst;
i++;
}
pst++;
}
*(lst + i) = '/0';
return T_OK;
}
</code>