File: lstrip.cc

package info (click to toggle)
nullmailer 1.00RC7-22
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 695
  • sloc: cpp: 4,375; sh: 519; makefile: 249; perl: 184; ansic: 10
file content (10 lines) | stat: -rw-r--r-- 166 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
#include "mystring.h"
#include <ctype.h>

mystring mystring::lstrip() const
{
  const char* ptr = rep->buf;
  while(*ptr && isspace(*ptr))
    ++ptr;
  return ptr;
}