Deleted Added
full compact
strsep.3 (107387) strsep.3 (131504)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)strsep.3 8.1 (Berkeley) 6/9/93
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)strsep.3 8.1 (Berkeley) 6/9/93
36.\" $FreeBSD: head/lib/libc/string/strsep.3 107387 2002-11-29 15:57:50Z ru $
36.\" $FreeBSD: head/lib/libc/string/strsep.3 131504 2004-07-02 23:52:20Z ru $
37.\"
38.Dd June 9, 1993
39.Dt STRSEP 3
40.Os
41.Sh NAME
42.Nm strsep
43.Nd separate strings
44.Sh LIBRARY

--- 65 unchanged lines hidden (view full) ---

110function
111is intended as a replacement for the
112.Fn strtok
113function.
114While the
115.Fn strtok
116function should be preferred for portability reasons (it conforms to
117.St -isoC )
37.\"
38.Dd June 9, 1993
39.Dt STRSEP 3
40.Os
41.Sh NAME
42.Nm strsep
43.Nd separate strings
44.Sh LIBRARY

--- 65 unchanged lines hidden (view full) ---

110function
111is intended as a replacement for the
112.Fn strtok
113function.
114While the
115.Fn strtok
116function should be preferred for portability reasons (it conforms to
117.St -isoC )
118it is unable to handle empty fields, i.e. detect fields delimited by
118it is unable to handle empty fields, i.e., detect fields delimited by
119two adjacent delimiter characters, or to be used for more than a single
120string at a time.
121The
122.Fn strsep
123function first appeared in
124.Bx 4.4 .
119two adjacent delimiter characters, or to be used for more than a single
120string at a time.
121The
122.Fn strsep
123function first appeared in
124.Bx 4.4 .