Clarify that strnstr() will stop searching after in encounters a NUL
character. Bump document date. Add a missing comma.
This commit is contained in:
parent
56ccbf72ac
commit
a9227c40eb
@ -37,7 +37,7 @@
|
|||||||
.\" @(#)strstr.3 8.1 (Berkeley) 6/4/93
|
.\" @(#)strstr.3 8.1 (Berkeley) 6/4/93
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 4, 1993
|
.Dd October 11, 2001
|
||||||
.Dt STRSTR 3
|
.Dt STRSTR 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -65,7 +65,7 @@ in the null-terminated string
|
|||||||
The
|
The
|
||||||
.Fn strcasestr
|
.Fn strcasestr
|
||||||
function is similar to
|
function is similar to
|
||||||
.Fn strstr
|
.Fn strstr ,
|
||||||
but ignores the case of both strings.
|
but ignores the case of both strings.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
@ -75,9 +75,12 @@ locates the first occurrence of the null-terminated string
|
|||||||
.Fa little
|
.Fa little
|
||||||
in the string
|
in the string
|
||||||
.Fa big ,
|
.Fa big ,
|
||||||
where only the first number of characters, identified by
|
where not more than
|
||||||
.Fa len ,
|
.Fa len
|
||||||
are searched.
|
characters are searched.
|
||||||
|
Characters that appear after a
|
||||||
|
.Ql \e0
|
||||||
|
character are not searched.
|
||||||
Since the
|
Since the
|
||||||
.Fn strnstr
|
.Fn strnstr
|
||||||
function is a
|
function is a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user