src/stdlib/strwhite.c
/*=======================================
 * striplead -- Strip leading white space
 *  modifies argument (shifts up string towards
 *  beginning to eliminate any leading whitespace)
 * UNUSED CODE
 *=====================================*/
- Strip leading white space
modifies argument (shifts up string towards
beginning to eliminate any leading whitespace)
UNUSED CODE
- Strip leading white space modifies argument ( shifts up string towards beginning to eliminate any leading whitespace ) UNUSED CODE
void
striplead (STRING p)
{
	INT i = strlen(p);
	STRING  e = p + i - 1;
	STRING b = p;
	STRING q = p;
	while (iswhite((uchar)*q) && q <= e) {
		++q;
		--i; 
	}
	if (q == p) return;
	while (b <= e && --i >= 0)
		*b++ = *q++;
	*b++ = '\0';
}
void striplead ( STRING p ) { INT i = strlen ( p ) ; STRING e = p + i - 1 ; STRING b = p ; STRING q = p ; while ( iswhite ( ( uchar ) * q ) && q <= e ) { ++ q ; -- i ; } if ( q == p ) return ; while ( b <= e && -- i >= 0 ) * b ++ = * q ++ ; * b ++ = ' \0 ' ; }
striplead -- Strip leading white space
  modifies argument (shifts up string towards
  beginning to eliminate any leading whitespace)
 UNUSED CODE
striplead -- Strip leading white space modifies argument ( shifts up string towards beginning to eliminate any leading whitespace ) UNUSED CODE
/* keep from copying past end of p */