summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strsep.3
diff options
context:
space:
mode:
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 .