diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-10 02:17:35 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-10 02:17:35 +0000 |
| commit | 89503316a038ddfd04ea8491974e05d1baa5e531 (patch) | |
| tree | ee0ad47683714580d8cf18a06e67aea3d7fcebcc /lib/libc/string/strstr.3 | |
| parent | 4a7fc8131d88fa8c257f7bf6932cce9d696a5374 (diff) | |
Notes
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 |
