summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strsep.3
diff options
context:
space:
mode:
authorschwarze <>2011-07-25 00:38:53 +0000
committerschwarze <>2011-07-25 00:38:53 +0000
commit339c056f856313e215baab8ddc4bc0ce064b4571 (patch)
tree7c0511efd76ae46bc18c0955627ddf69509014c6 /src/lib/libc/string/strsep.3
parent3ad0ccfe078fe407c711a9d1fb21b9b79aa67f2c (diff)
downloadopenbsd-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.316
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
97The 97The
98.Fn strsep 98.Fn strsep
99function is intended as a replacement for the 99function first appeared in
100.Fn strtok 100.Bx 4.3 Reno .
101It is intended as a replacement for the
102.Xr strtok 3
101function. 103function.
102While the 104While the
103.Fn strtok 105.Xr strtok 3
104function should be preferred for portability reasons (it conforms to 106function should be preferred for portability reasons (it conforms to
105.St -ansiC ) 107.St -ansiC )
106it is unable to handle empty fields, i.e., detect fields delimited by 108it is unable to handle empty fields, i.e., detect fields delimited by
107two adjacent delimiter characters, or to be used for more than a single 109two adjacent delimiter characters, or to be used for more than a single
108string at a time. 110string at a time.
109The
110.Fn strsep
111function first appeared in
112.Bx 4.4 .