27 while (*p && (*p == *s))
70 for (s = sub; *s; s++) {
71 if (!*str || (*s != *str++))
115 while (isdigit(*str))
116 i = i * 10 + *(str++) -
'0';
133 if ((isupper(*p) ? tolower(*p) : *p) !=
134 (isupper(*s) ? tolower(*s) : *s))
139 return (*s ?
false :
true);
155 if ((isupper(*p) ? tolower(*p) : *p) !=
156 (isupper(*s) ? tolower(*s) : *s))
176 *str = tolower(*str);
200 while (**s && !isspace(**s))
225 while (**s && !isspace(**s))
251 while (**s && !isspace(**s))
278 while (**s && !isspace(**s))
299 while ((*s != c) && (*s !=
'\0'))
320 for (t = (
char*)s; *t !=
'\0'; t++);
321 while ((*t != c) && (t != (
char*)s))
static char buf[MAXPROMPT]
int copytok1(char *dst, char **s)
int substring(char *sub, char *str)
int bzero(char *ptr, int num)
int copytok(char *dst, char **s)
int prefix(char *p, char *s)
void strtolower(char *str)
int cieq(char *p, char *s)
void appendc(char *s, char c)
int ciprefix(char *p, char *s)
char * rindex(char *s, char c) const
char * index(char *s, char c) const
void bcopy(char *from, char *to, int num)