Logo Search packages:      
Sourcecode: bglibs version File versions

void str_rstrip ( str s  ) 

Strip all white space from the right (end) of the string

Definition at line 22 of file rstrip.c.

References len, and s.

{
  unsigned len;
  for (len = s->len; len > 0 && isspace(s->s[len-1]); --len) ;
  s->len = len;
  s->s[len] = 0;
}


Generated by  Doxygen 1.6.0   Back to index