summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strstr.3
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-10-11 15:49:06 +0000
committermike <mike@FreeBSD.org>2001-10-11 15:49:06 +0000
commit988a5d401980b43471fd55a6c07dd624ad0334b3 (patch)
tree2846e0f6319940e853f265eeecf19cead46c7ff7 /lib/libc/string/strstr.3
parenta911e647c8d0351b8c55fa452ba1f1bd179f538e (diff)
downloadFreeBSD-src-988a5d401980b43471fd55a6c07dd624ad0334b3.zip
FreeBSD-src-988a5d401980b43471fd55a6c07dd624ad0334b3.tar.gz
Clarify that strnstr() will stop searching after in encounters a NUL
character. Bump document date. Add a missing comma.
Diffstat (limited to 'lib/libc/string/strstr.3')
-rw-r--r--lib/libc/string/strstr.313
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/string/strstr.3 b/lib/libc/string/strstr.3
index d71537d..4fd02d2 100644
--- a/lib/libc/string/strstr.3
+++ b/lib/libc/string/strstr.3
@@ -37,7 +37,7 @@
.\" @(#)strstr.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd October 11, 2001
.Dt STRSTR 3
.Os
.Sh NAME
@@ -65,7 +65,7 @@ in the null-terminated string
The
.Fn strcasestr
function is similar to
-.Fn strstr
+.Fn strstr ,
but ignores the case of both strings.
.Pp
The
@@ -75,9 +75,12 @@ locates the first occurrence of the null-terminated string
.Fa little
in the string
.Fa big ,
-where only the first number of characters, identified by
-.Fa len ,
-are searched.
+where not more than
+.Fa len
+characters are searched.
+Characters that appear after a
+.Ql \e0
+character are not searched.
Since the
.Fn strnstr
function is a
OpenPOWER on IntegriCloud