1 --- strstr.3.bsdnew 2009-11-30 13:52:24.000000000 -0800
2 +++ strstr.3 2009-11-30 14:58:48.000000000 -0800
7 -.Nm strstr , strcasestr , strnstr
12 .Nd locate a substring in a string
18 -.Fn strstr "const char *big" "const char *little"
24 -.Fn strcasestr "const char *big" "const char *little"
31 -.Fn strnstr "const char *big" "const char *little" "size_t len"
48 locates the first occurrence of the null-terminated string
51 in the null-terminated string
57 @@ -68,11 +89,11 @@ The
60 locates the first occurrence of the null-terminated string
69 characters are searched.
70 Characters that appear after a
72 @@ -82,20 +103,28 @@ Since the
75 specific API, it should only be used when portability is not a concern.
79 +function uses the current locale, the
81 +function may be passed a locale directly. See
83 +for more information.
100 otherwise a pointer to the first character of the first occurrence of
105 The following sets the pointer
106 @@ -128,7 +157,6 @@ ptr = strnstr(largestring, smallstring,
114 @@ -136,7 +164,8 @@ ptr = strnstr(largestring, smallstring,