stresep, not strnsep. Remove duplicate "the". Bump date for previous.
This commit is contained in:
parent
a5afdcde5a
commit
31e92ca26e
|
@ -29,9 +29,9 @@
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" from: @(#)strsep.3 8.1 (Berkeley) 6/9/93
|
.\" from: @(#)strsep.3 8.1 (Berkeley) 6/9/93
|
||||||
.\" $NetBSD: strsep.3,v 1.17 2006/08/12 23:49:54 christos Exp $
|
.\" $NetBSD: strsep.3,v 1.18 2006/08/13 23:20:52 wiz Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd August 11, 2002
|
.Dd August 12, 2006
|
||||||
.Dt STRSEP 3
|
.Dt STRSEP 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -83,8 +83,8 @@ is initially
|
||||||
returns
|
returns
|
||||||
.Dv NULL .
|
.Dv NULL .
|
||||||
The
|
The
|
||||||
.Fn strnsep
|
.Fn stresep
|
||||||
function also takes an escape character that allows quoting the the delimiter
|
function also takes an escape character that allows quoting the delimiter
|
||||||
character so that it can be part of the source string.
|
character so that it can be part of the source string.
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
The following uses
|
The following uses
|
||||||
|
@ -94,7 +94,7 @@ argument vector:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
char **ap, *argv[10], *inputstring;
|
char **ap, *argv[10], *inputstring;
|
||||||
|
|
||||||
for (ap = argv; ap < \*[Am]argv[9] \*[Am]\*[Am]
|
for (ap = argv; ap \*[Lt] \*[Am]argv[9] \*[Am]\*[Am]
|
||||||
(*ap = strsep(\*[Am]inputstring, " \et")) != NULL;) {
|
(*ap = strsep(\*[Am]inputstring, " \et")) != NULL;) {
|
||||||
if (**ap != '\e0')
|
if (**ap != '\e0')
|
||||||
ap++;
|
ap++;
|
||||||
|
|
Loading…
Reference in New Issue