61 if (!buff || *buff ==
'\0')
return (
char *)NULL;
67 while(*bp && (*bp ==
' ' || *bp ==
'\t')) bp++;
68 else while(*bp && *bp ==
' ' ) bp++;
75 while(*bp && *bp !=
'\n') {
if (*bp ==
'\t') *bp =
' '; bp++;}
76 else while(*bp && *bp !=
'\n') bp++;
80 if (*bp) {*bp =
'\0'; buff = bp+1;}
98 while (*tnext && *tnext ==
' ') tnext++;
99 if (!*tnext)
return (
char *)NULL;
104 if (lowcase)
while (*tnext && *tnext !=
' ')
105 {*tnext = (char)tolower((
int)*tnext); tnext++;}
106 else while (*tnext && *tnext !=
' ') {tnext++;}
107 if (*tnext) {*tnext =
'\0'; tnext++;}
112 {
while (*tnext && *tnext ==
' ') tnext++;
130 {
if (*tnext) token[strlen(token)] =
' ';
char * GetToken(char **rest=0, int lowcase=0)