1 #include <msvcrt/mbstring.h>
3 unsigned char * _mbstok(unsigned char *s, unsigned char *delim)
11 if (s == NULL && (s = last) == NULL)
15 * Skip (span) leading delimiters (s += strspn(s, delim), sort of).
21 for (spanp = delim; (sc = *spanp) != 0; spanp = _mbsinc(spanp)) {
26 if (c == 0) { /* no non-delimiter characters */
33 * Scan token (scan for delimiters: s += strcspn(s, delim), sort of).
34 * Note that delim must have one NUL; we stop if we see that, too.
41 if ((sc = *spanp) == c) {
49 spanp = _mbsinc(spanp);