#include <stdlib.h>
#include <mbstring.h>
Go to the source code of this file.
◆ _mbstok()
Definition at line 7 of file mbstok.c.
8{
9 const unsigned char *spanp;
11 unsigned char *tok;
12 static unsigned char *
last;
13
14
17
18
19
20
21 cont:
24
25 for (spanp = delim; (sc = *spanp) != 0; spanp =
_mbsinc(spanp)) {
27 goto cont;
28 }
29
33 }
35
36
37
38
39
40 for (;;) {
43 spanp = delim;
44 do {
45 if ((sc = *spanp) ==
c) {
48 else
51 return (tok);
52 }
54 } while (sc != 0);
55 }
56
57}
_Check_return_ _CRTIMP unsigned char *__cdecl _mbsinc(_In_z_ const unsigned char *_Ptr)