strcat(2): 0 → nil in manpage in refrence to pointers
This commit is contained in:
parent
e8259861da
commit
5a23b752eb
|
@ -161,9 +161,7 @@ occurrence of byte
|
||||||
.I c
|
.I c
|
||||||
in string
|
in string
|
||||||
.IR s ,
|
.IR s ,
|
||||||
or
|
or nil if
|
||||||
.L 0
|
|
||||||
if
|
|
||||||
.I c
|
.I c
|
||||||
does not occur in the string.
|
does not occur in the string.
|
||||||
The null byte terminating a string is considered to
|
The null byte terminating a string is considered to
|
||||||
|
@ -174,8 +172,7 @@ returns a pointer to the first occurrence in string
|
||||||
.I s1
|
.I s1
|
||||||
of any byte from string
|
of any byte from string
|
||||||
.IR s2 ,
|
.IR s2 ,
|
||||||
.L 0
|
nil if no byte from
|
||||||
if no byte from
|
|
||||||
.I s2
|
.I s2
|
||||||
exists in
|
exists in
|
||||||
.IR s1 .
|
.IR s1 .
|
||||||
|
@ -205,9 +202,7 @@ keeps track of its position in the string
|
||||||
between separate calls; subsequent calls,
|
between separate calls; subsequent calls,
|
||||||
signified by
|
signified by
|
||||||
.I s1
|
.I s1
|
||||||
being
|
being nil, will work through the string
|
||||||
.LR 0 ,
|
|
||||||
will work through the string
|
|
||||||
.I s1
|
.I s1
|
||||||
immediately following that token.
|
immediately following that token.
|
||||||
The separator string
|
The separator string
|
||||||
|
@ -215,24 +210,21 @@ The separator string
|
||||||
may be different from call to call.
|
may be different from call to call.
|
||||||
When no token remains in
|
When no token remains in
|
||||||
.IR s1 ,
|
.IR s1 ,
|
||||||
.L 0
|
nil is returned.
|
||||||
is returned.
|
|
||||||
.PP
|
.PP
|
||||||
.I Strdup
|
.I Strdup
|
||||||
returns a pointer to a distinct copy of the null-terminated string
|
returns a pointer to a distinct copy of the null-terminated string
|
||||||
.I s
|
.I s
|
||||||
in space obtained from
|
in space obtained from
|
||||||
.IR malloc (2)
|
.IR malloc (2)
|
||||||
or
|
or nil if no space can be obtained.
|
||||||
.L 0
|
|
||||||
if no space can be obtained.
|
|
||||||
.PP
|
.PP
|
||||||
.I Strstr
|
.I Strstr
|
||||||
returns a pointer to the first occurrence of
|
returns a pointer to the first occurrence of
|
||||||
.I s2
|
.I s2
|
||||||
as a substring of
|
as a substring of
|
||||||
.IR s1 ,
|
.IR s1 ,
|
||||||
or 0 if there is none.
|
or nil if there is none.
|
||||||
If
|
If
|
||||||
.I s2
|
.I s2
|
||||||
is the null string,
|
is the null string,
|
||||||
|
|
Loading…
Reference in a new issue