Logo Search packages:      
Sourcecode: bglibs version File versions

void str_lstrip ( str s  ) 

Strip all white space from the left (front) of the string

Definition at line 23 of file lstrip.c.

References len, and s.

{
  unsigned off;
  for (off = 0; off < s->len && isspace(s->s[off]); ++off) ;
  if (off) {
    memmove(s->s, s->s+off, s->len-off+1);
    s->len -= off;
  }
}


Generated by  Doxygen 1.6.0   Back to index