src/stdlib/strwhite.c
/*=========================================
 * striptrail -- Strip trailing white space
 *  modifies argument (zeros out trailing whitespace)
 *=======================================*/
- Strip trailing white space
modifies argument (zeros out trailing whitespace)
- Strip trailing white space modifies argument ( zeros out trailing whitespace )
void
striptrail (STRING p)
{
	STRING q = p + strlen(p) - 1;
	while (q >= p && iswhite((uchar)*q))
		*q-- = '\0';
}
void striptrail ( STRING p ) { STRING q = p + strlen ( p ) - 1 ; while ( q >= p && iswhite ( ( uchar ) * q ) ) * q -- = ' \0 ' ; }
striptrail -- Strip trailing white space
  modifies argument (zeros out trailing whitespace)
striptrail -- Strip trailing white space modifies argument ( zeros out trailing whitespace )