-#include <crtdll/wchar.h>
+#include <msvcrt/string.h>
wchar_t *wcstok(wchar_t *s, const wchar_t *ct)
{
wchar_t *tok;
static wchar_t *last;
-
if (s == NULL && (s = last) == NULL)
return (NULL);
s++;
for (spanp = ct; (sc = *spanp) != 0;spanp++) {
if (c == sc)
- goto cont;
+ goto cont;
}
if (c == 0) { /* no non-ctiter characters */
last = NULL;
- return (NULL);
+ return (NULL);
}
tok = s - 2;
* Note that ct must have one NUL; we stop if we see that, too.
*/
for (;;) {
-
c = *s;
s+=2;
spanp = ct;
}
spanp+=2;
} while (sc != 0);
-
}
/* NOTREACHED */
}