mirror of https://github.com/mkerrisk/man-pages
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:
parent
d96bf5f5bf
commit
c61a1c396e
|
@ -108,9 +108,9 @@ The following code loops over the tokens contained in a wide-character string.
|
||||||
wchar_t *wcs = ...;
|
wchar_t *wcs = ...;
|
||||||
wchar_t *token;
|
wchar_t *token;
|
||||||
wchar_t *state;
|
wchar_t *state;
|
||||||
for (token = wcstok(wcs, " \et\en", &state);
|
for (token = wcstok(wcs, L" \et\en", &state);
|
||||||
token != NULL;
|
token != NULL;
|
||||||
token = wcstok(NULL, " \et\en", &state)) {
|
token = wcstok(NULL, L" \et\en", &state)) {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
.EE
|
.EE
|
||||||
|
|
Loading…
Reference in New Issue