components/prboom/d_deh.c
// ====================================================================
// rstrip
// Purpose: Strips trailing blanks off a string
// Args:    s -- the string to work on
// Returns: void -- the string is modified in place
//
rstrip
Purpose: Strips trailing blanks off a string
Args:    s -- the string to work on
Returns: void -- the string is modified in place
rstrip Purpose : Strips trailing blanks off a string Args : s -- the string to work on Returns : void -- the string is modified in place
void rstrip(char *s)  
{
  char *p = s+strlen(s);         
  while (p > s && isspace(*--p)) 
    *p='\0';
}
void rstrip ( char * s ) { char * p = s + strlen ( s ) ; while ( p > s && isspace ( * -- p ) ) * p = ' \0 ' ; }
rstrip
Purpose: Strips trailing blanks off a string
Args:    s -- the string to work on
Returns: void -- the string is modified in place
rstrip Purpose : Strips trailing blanks off a string Args : s -- the string to work on Returns : void -- the string is modified in place
// strip trailing whitespace // killough 4/4/98: same here // break on first non-whitespace