Googled this and can't find good solution.char *rtrim(char * string)
{
while (strcmp(strrchr(string, ' '), " ") == 0) {
string[strlen(string)-1] = 0;
}
return string;
}
Wednesday, June 10, 2009
rtrim
Delete trailing spaces
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment