1 --- _SB/Libc/string/FreeBSD/wcstok.3 2003-05-20 15:23:56.000000000 -0700
2 +++ _SB/Libc/string/FreeBSD/wcstok.3.edit 2006-06-28 16:55:53.000000000 -0700
7 -.Fn wcstok "wchar_t * restrict str" "const wchar_t * restrict sep" "wchar_t ** restrict last"
9 +.Fa "wchar_t *restrict ws1"
10 +.Fa "const wchar_t *restrict ws2"
11 +.Fa "wchar_t **restrict ptr"
17 is used to isolate sequential tokens in a null-terminated wide character
21 These tokens are separated in the string by at least one of the
30 should be specified; subsequent calls, wishing to obtain further tokens
31 from the same string, should pass a null pointer instead.
35 must be supplied each time, and may change between calls.
40 must be provided on each call.
45 The following code fragment splits a wide character string on
47 -space, tab and newline characters and writes the tokens to
49 +space, tab, and newline characters,
50 +writing the resulting tokens to standard output:
51 .Bd -literal -offset indent
52 const wchar_t *seps = L" \et\en";
53 wchar_t *last, *tok, text[] = L" \enone\ettwo\et\etthree \en";
57 context pointer argument,
60 and maintain state across calls in a static variable like