summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcstok.3
diff options
context:
space:
mode:
authorjaredy <>2005-08-06 03:21:36 +0000
committerjaredy <>2005-08-06 03:21:36 +0000
commit688d6cbb33ef71f63fab8688e85ac2f7aeb7b164 (patch)
tree77512edbdfbc7521fca9b386450af369c7b4ee75 /src/lib/libc/string/wcstok.3
parent932da6a5c29178852f64fcd9163a9ea6b06cd011 (diff)
downloadopenbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.tar.gz
openbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.tar.bz2
openbsd-688d6cbb33ef71f63fab8688e85ac2f7aeb7b164.zip
- macro, punctuation, and rewording tweaks
- avoid first person. ok jmc
Diffstat (limited to 'src/lib/libc/string/wcstok.3')
-rw-r--r--src/lib/libc/string/wcstok.38
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/string/wcstok.3 b/src/lib/libc/string/wcstok.3
index dd3f36cfd5..28291888f5 100644
--- a/src/lib/libc/string/wcstok.3
+++ b/src/lib/libc/string/wcstok.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: wcstok.3,v 1.2 2005/04/13 20:42:48 jmc Exp $ 1.\" $OpenBSD: wcstok.3,v 1.3 2005/08/06 03:21:36 jaredy Exp $
2.\" 2.\"
3.\" $NetBSD: wcstok.3,v 1.3 2003/09/08 17:54:33 wiz Exp $ 3.\" $NetBSD: wcstok.3,v 1.3 2003/09/08 17:54:33 wiz Exp $
4.\" 4.\"
@@ -68,7 +68,7 @@
68The 68The
69.Fn wcstok 69.Fn wcstok
70function 70function
71is used to isolate sequential tokens in a null-terminated wide character 71is used to isolate sequential tokens in a NUL-terminated wide character
72string, 72string,
73.Fa str . 73.Fa str .
74These tokens are separated in the string by at least one of the 74These tokens are separated in the string by at least one of the
@@ -97,12 +97,12 @@ The
97.Fn wcstok 97.Fn wcstok
98function 98function
99returns a pointer to the beginning of each subsequent token in the string, 99returns a pointer to the beginning of each subsequent token in the string,
100after replacing the token itself with a null wide character (L'\e0'). 100after replacing the token itself with a NUL wide character (L'\e0').
101When no more tokens remain, a null pointer is returned. 101When no more tokens remain, a null pointer is returned.
102.Sh EXAMPLES 102.Sh EXAMPLES
103The following code fragment splits a wide character string on 103The following code fragment splits a wide character string on
104.Tn ASCII 104.Tn ASCII
105space, tab and newline characters and writes the tokens to 105space, tab, and newline characters and writes the tokens to
106standard output: 106standard output:
107.Bd -literal -offset indent 107.Bd -literal -offset indent
108const wchar_t *seps = L" \et\en"; 108const wchar_t *seps = L" \et\en";