Trimming (computer programming): Difference between revisions

Content deleted Content added
Rescuing 1 sources, flagging 0 as dead, and archiving 8 sources. #IABot
Ek9852 (talk | contribs)
No edit summary
Line 149:
void rtrim(char *str)
{
size_tchar n*s;
ns = str + strlen(str);
while (n--s >= 0 && isspace((unsigned char)str[n - 1])) {
if (!isspace(*s)) break;
n--*s = 0;
}
str[n] = '\0';
}