summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strstr.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strstr.3')
-rw-r--r--src/lib/libc/string/strstr.314
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lib/libc/string/strstr.3 b/src/lib/libc/string/strstr.3
index 24fdf540ed..10beea42ca 100644
--- a/src/lib/libc/string/strstr.3
+++ b/src/lib/libc/string/strstr.3
@@ -33,8 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" from: @(#)strstr.3 5.3 (Berkeley) 6/29/91 36.\" $OpenBSD: strstr.3,v 1.5 2000/04/21 15:24:20 aaron Exp $
37.\" $Id: strstr.3,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $
38.\" 37.\"
39.Dd June 29, 1991 38.Dd June 29, 1991
40.Dt STRSTR 3 39.Dt STRSTR 3
@@ -49,8 +48,7 @@
49.Sh DESCRIPTION 48.Sh DESCRIPTION
50The 49The
51.Fn strstr 50.Fn strstr
52function 51function locates the first occurrence of the null-terminated string
53locates the first occurrence of the null-terminated string
54.Fa little 52.Fa little
55in the null-terminated string 53in the null-terminated string
56.Fa big . 54.Fa big .
@@ -65,15 +63,14 @@ if
65occurs nowhere in 63occurs nowhere in
66.Fa big , 64.Fa big ,
67.Fn strstr 65.Fn strstr
68returns NULL; 66returns
67.Dv NULL ;
69otherwise 68otherwise
70.Fn strstr 69.Fn strstr
71returns a pointer to the first character of the first occurrence of 70returns a pointer to the first character of the first occurrence of
72.Fa little . 71.Fa little .
73.Sh SEE ALSO 72.Sh SEE ALSO
74.Xr index 3 ,
75.Xr memchr 3 , 73.Xr memchr 3 ,
76.Xr rindex 3 ,
77.Xr strchr 3 , 74.Xr strchr 3 ,
78.Xr strcspn 3 , 75.Xr strcspn 3 ,
79.Xr strpbrk 3 , 76.Xr strpbrk 3 ,
@@ -84,6 +81,5 @@ returns a pointer to the first character of the first occurrence of
84.Sh STANDARDS 81.Sh STANDARDS
85The 82The
86.Fn strstr 83.Fn strstr
87function 84function conforms to
88conforms to
89.St -ansiC . 85.St -ansiC .