Signed-off-by: Jakub Wilk <jwilk@xxxxxxxxx> --- man3/wcstok.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/wcstok.3 b/man3/wcstok.3 index 401411d98..af642ca46 100644 --- a/man3/wcstok.3 +++ b/man3/wcstok.3 @@ -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 -- 2.32.0