diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/string/strsep.3 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/libc/string/strsep.3 b/src/lib/libc/string/strsep.3 index 5af262a074..dfd835bce8 100644 --- a/src/lib/libc/string/strsep.3 +++ b/src/lib/libc/string/strsep.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: strsep.3,v 1.4 1998/06/15 17:55:14 mickey Exp $ | 1 | .\" $OpenBSD: strsep.3,v 1.5 1999/06/04 19:14:56 aaron Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1990, 1991, 1993 | 3 | .\" Copyright (c) 1990, 1991, 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -58,13 +58,17 @@ the first occurrence of any character in the string | |||
| 58 | character) and replaces it with a | 58 | character) and replaces it with a |
| 59 | .Ql \e0 . | 59 | .Ql \e0 . |
| 60 | The location of the next character after the delimiter character | 60 | The location of the next character after the delimiter character |
| 61 | (or NULL, if the end of the string was reached) is stored in | 61 | (or |
| 62 | .Dv NULL , | ||
| 63 | if the end of the string was reached) is stored in | ||
| 62 | .Fa *stringp . | 64 | .Fa *stringp . |
| 63 | The original value of | 65 | The original value of |
| 64 | .Fa *stringp | 66 | .Fa *stringp |
| 65 | is returned. | 67 | is returned. |
| 66 | .Pp | 68 | .Pp |
| 67 | An ``empty'' field, i.e. one caused by two adjacent delimiter characters, | 69 | An |
| 70 | .Dq empty | ||
| 71 | field, i.e., one caused by two adjacent delimiter characters, | ||
| 68 | can be detected by comparing the location referenced by the pointer returned | 72 | can be detected by comparing the location referenced by the pointer returned |
| 69 | in | 73 | in |
| 70 | .Fa *stringp | 74 | .Fa *stringp |
| @@ -101,7 +105,7 @@ While the | |||
| 101 | .Fn strtok | 105 | .Fn strtok |
| 102 | function should be preferred for portability reasons (it conforms to | 106 | function should be preferred for portability reasons (it conforms to |
| 103 | .St -ansiC ) | 107 | .St -ansiC ) |
| 104 | it is unable to handle empty fields, i.e. detect fields delimited by | 108 | it is unable to handle empty fields, i.e., detect fields delimited by |
| 105 | two adjacent delimiter characters, or to be used for more than a single | 109 | two adjacent delimiter characters, or to be used for more than a single |
| 106 | string at a time. | 110 | string at a time. |
| 107 | The | 111 | The |
