Definition | #include <wchar.h> wchar_t *wcstok(wchar_t *ws1, const wchar_t *ws2, wchar_t **ptr);
The start and end criterion for each token are separator characters (delimiters), which must be specified in a second wide character string ws2. Tokens may be delimited by one or more such separators or by the beginning and end of the entire wide character string ws1. Blanks, colons, commas, etc., are typical separators between the words of a sentence.
A different delimiter string ws2 may be specified in each call. | |
Return val. | Pointer to the start of a wide character token. | |
A pointer to the first wide character token is returned at the first call; a pointer to the next wide character token at the next call, and so on. | ||
NULL pointer | if no wide character token, or no further wide character token was found. | |
Note | This version of the C runtime system only supports one-byte characters as wide character codes. | |
See also | strtok |