diff options
Diffstat (limited to 'lib/libc/string/strstr.3')
-rw-r--r-- | lib/libc/string/strstr.3 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/string/strstr.3 b/lib/libc/string/strstr.3 index c8aca32d9516..d71537d67bc7 100644 --- a/lib/libc/string/strstr.3 +++ b/lib/libc/string/strstr.3 @@ -41,7 +41,7 @@ .Dt STRSTR 3 .Os .Sh NAME -.Nm strstr , strnstr +.Nm strstr , strcasestr , strnstr .Nd locate a substring in a string .Sh LIBRARY .Lb libc @@ -50,6 +50,8 @@ .Ft char * .Fn strstr "const char *big" "const char *little" .Ft char * +.Fn strcasestr "const char *big" "const char *little" +.Ft char * .Fn strnstr "const char *big" "const char *little" "size_t len" .Sh DESCRIPTION The @@ -61,6 +63,12 @@ in the null-terminated string .Fa big . .Pp The +.Fn strcasestr +function is similar to +.Fn strstr +but ignores the case of both strings. +.Pp +The .Fn strnstr function locates the first occurrence of the null-terminated string |