1163
/* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */
1165
strsep (char **stringp, const char *delim)
1173
/* A frequent case is when the delimiter string contains only one
1174
character. Here we don't need to call the expensive `strpbrk'
1175
function and instead work using `strchr'. */
1176
if (delim[0] == '\0' || delim[1] == '\0')
1186
else if (*begin == '\0')
1189
end = strchr (begin + 1, ch);
1193
/* Find the end of the token. */
1194
end = strpbrk (begin, delim);
1198
/* Terminate the token and set *STRINGP past NUL character. */
1203
/* No more delimiters; this is the last token. */
1208
#endif /*HAVE_STRSEP*/
1211
1161
#ifndef HAVE_STRLWR
1213
1163
strlwr(char *s)