Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 8
Break a wide-character string into tokens
#include <wchar.h>
wchar_t * wcstok( wchar_t * ws1,
const wchar_t * ws2,
wchar_t ** ptr );
- ws1
- NULL, or the wide-character string that you want to break
into tokens; see below.
- ws2
- A set of the wide characters that separate the tokens.
- ptr
- The address of a pointer to a wchar_t object, which the
function can use to store information necessary for it to continue scanning
the same string.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The function wcstok() breaks the wide-character string pointed to
by ws1 into
a sequence of tokens, each of which is delimited by a wide character from the
string pointed to by ws2.
In the first call to wcstok(), ws1 must point
to a null-terminated string, ws2 must point to a
null-terminated string of separator wide characters, and
ptr is ignored. The wcstok() function returns a pointer
to the first wide character of the first token, writes a
NUL wide character into ws1 immediately following
the returned token, and updates ptr.
In subsequent calls, ws1 must be NULL,
and ptr must be unchanged from the previous call
so that subsequent calls will move through the string ws1,
returning successive tokens until no tokens remain. The separator
string ws2 may differ from call to call. When no
tokens remain in ws1, a NULL pointer is returned.
A pointer to the token found, or NULL if no token was found.
ANSI,
POSIX 1003.1
wcstok()
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
memchr(),
strchr(),
strcspn(),
strpbrk(),
strrchr(),
strset(),
strspn(),
strstr(),
strtok(),
strtok_r(),
wcschr(),
wcscspn(),
wcspbrk(),
wcsrchr(),
wcsspn(),
wcsstr()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 154
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/w/wcstok.html on line 154