Googled this and can't find good solution.char *rtrim(char * string)
{
while (strcmp(strrchr(string, ' '), " ") == 0) {
string[strlen(string)-1] = 0;
}
return string;
}
Showing posts with label trim. Show all posts
Showing posts with label trim. Show all posts
Wednesday, June 10, 2009
rtrim
Delete trailing spaces
Subscribe to:
Posts (Atom)