diff options
author | schwarze <> | 2011-07-25 00:38:53 +0000 |
---|---|---|
committer | schwarze <> | 2011-07-25 00:38:53 +0000 |
commit | 339c056f856313e215baab8ddc4bc0ce064b4571 (patch) | |
tree | 7c0511efd76ae46bc18c0955627ddf69509014c6 /src/lib/libc/string/strsep.3 | |
parent | 3ad0ccfe078fe407c711a9d1fb21b9b79aa67f2c (diff) | |
download | openbsd-339c056f856313e215baab8ddc4bc0ce064b4571.tar.gz openbsd-339c056f856313e215baab8ddc4bc0ce064b4571.tar.bz2 openbsd-339c056f856313e215baab8ddc4bc0ce064b4571.zip |
update HISTORY and SEE ALSO for all of string(3), together with various
smaller improvements; jmc@ and nicm@ both ask me to get this in because
further tweaking will be easier in-tree
Diffstat (limited to 'src/lib/libc/string/strsep.3')
-rw-r--r-- | src/lib/libc/string/strsep.3 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/libc/string/strsep.3 b/src/lib/libc/string/strsep.3 index cceeda7577..63cdf2333a 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.12 2007/05/31 19:19:32 jmc Exp $ | 1 | .\" $OpenBSD: strsep.3,v 1.13 2011/07/25 00:38:53 schwarze 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. |
@@ -32,7 +32,7 @@ | |||
32 | .\" | 32 | .\" |
33 | .\" @(#)strsep.3 8.1 (Berkeley) 6/9/93 | 33 | .\" @(#)strsep.3 8.1 (Berkeley) 6/9/93 |
34 | .\" | 34 | .\" |
35 | .Dd $Mdocdate: May 31 2007 $ | 35 | .Dd $Mdocdate: July 25 2011 $ |
36 | .Dt STRSEP 3 | 36 | .Dt STRSEP 3 |
37 | .Os | 37 | .Os |
38 | .Sh NAME | 38 | .Sh NAME |
@@ -96,17 +96,15 @@ for (ap = argv; ap < &argv[9] && | |||
96 | .Sh HISTORY | 96 | .Sh HISTORY |
97 | The | 97 | The |
98 | .Fn strsep | 98 | .Fn strsep |
99 | function is intended as a replacement for the | 99 | function first appeared in |
100 | .Fn strtok | 100 | .Bx 4.3 Reno . |
101 | It is intended as a replacement for the | ||
102 | .Xr strtok 3 | ||
101 | function. | 103 | function. |
102 | While the | 104 | While the |
103 | .Fn strtok | 105 | .Xr strtok 3 |
104 | function should be preferred for portability reasons (it conforms to | 106 | function should be preferred for portability reasons (it conforms to |
105 | .St -ansiC ) | 107 | .St -ansiC ) |
106 | 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 |
107 | 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 |
108 | string at a time. | 110 | string at a time. |
109 | The | ||
110 | .Fn strsep | ||
111 | function first appeared in | ||
112 | .Bx 4.4 . | ||