wcstok.3: Fix type mismatch in the example

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Jakub Wilk 2021-07-12 18:40:26 +02:00 committed by Michael Kerrisk
parent d96bf5f5bf
commit c61a1c396e
1 changed files with 2 additions and 2 deletions

View File

@ -108,9 +108,9 @@ The following code loops over the tokens contained in a wide-character string.
wchar_t *wcs = ...;
wchar_t *token;
wchar_t *state;
for (token = wcstok(wcs, " \et\en", &state);
for (token = wcstok(wcs, L" \et\en", &state);
token != NULL;
token = wcstok(NULL, " \et\en", &state)) {
token = wcstok(NULL, L" \et\en", &state)) {
...
}
.EE