diff options
| author | wiz <wiz@NetBSD.org> | 2004-04-13 23:02:28 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2004-04-13 23:02:28 +0000 |
| commit | f2d94d5597cc5250db4591165eaa59abca13d024 (patch) | |
| tree | 3873751cfb0f8e6dc570c88f52e435dd63fc564a /lib/libc/string | |
| parent | 069e170f1cf7da732514c0d4dd850d83dd00aedc (diff) | |
Punctuation fixes; mark up NULL.
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strsep.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3 index 28d74ed0456..7bf6afbf89c 100644 --- a/lib/libc/string/strsep.3 +++ b/lib/libc/string/strsep.3 @@ -29,7 +29,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strsep.3 8.1 (Berkeley) 6/9/93 -.\" $NetBSD: strsep.3,v 1.14 2003/08/07 16:43:52 agc Exp $ +.\" $NetBSD: strsep.3,v 1.15 2004/04/13 23:02:28 wiz Exp $ .\" .Dd August 11, 2002 .Dt STRSEP 3 @@ -55,7 +55,9 @@ the first occurrence of any character in the string character) and replaces it with a .Ql \e0 . The location of the next character after the delimiter character -(or NULL, if the end of the string was reached) is stored in +(or +.Dv NULL , +if the end of the string was reached) is stored in .Fa *stringp . The original value of .Fa *stringp @@ -63,7 +65,7 @@ is returned. .Pp An .Dq empty -field, i.e. one caused by two adjacent delimiter characters, +field, i.e., one caused by two adjacent delimiter characters, can be detected by comparing the location referenced by the pointer returned by .Fn strsep @@ -86,7 +88,7 @@ argument vector: char **ap, *argv[10], *inputstring; for (ap = argv; ap < \*[Am]argv[9] \*[Am]\*[Am] - (*ap = strsep(\*[Am]inputstring, " \et")) != NULL;) { + (*ap = strsep(\*[Am]inputstring, " \et")) != NULL) { if (**ap != '\e0') ap++; } @@ -102,7 +104,7 @@ While the .Fn strtok function should be preferred for portability reasons (it conforms to .St -ansiC ) -it is unable to handle empty fields, i.e. detect fields delimited by +it is unable to handle empty fields, i.e., detect fields delimited by two adjacent delimiter characters, or to be used for more than a single string at a time. The |
