summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorespie <>1999-09-21 16:44:01 +0000
committerespie <>1999-09-21 16:44:01 +0000
commiteddda6bf00c124288aea38cccb8f6cbd44e6a13b (patch)
tree78f295f62064116a7fdc2f6a38a0d0813eb4d2ad /src/lib
parent7888080e5d9ce71af4015e34c3c3a0a0d3d3119a (diff)
downloadopenbsd-eddda6bf00c124288aea38cccb8f6cbd44e6a13b.tar.gz
openbsd-eddda6bf00c124288aea38cccb8f6cbd44e6a13b.tar.bz2
openbsd-eddda6bf00c124288aea38cccb8f6cbd44e6a13b.zip
index/rindex as deprecated synonyms to strchr/strrchr.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/string/Makefile.inc8
-rw-r--r--src/lib/libc/string/index.382
-rw-r--r--src/lib/libc/string/memchr.34
-rw-r--r--src/lib/libc/string/rindex.382
-rw-r--r--src/lib/libc/string/strchr.318
-rw-r--r--src/lib/libc/string/strcspn.34
-rw-r--r--src/lib/libc/string/strpbrk.34
-rw-r--r--src/lib/libc/string/strrchr.318
-rw-r--r--src/lib/libc/string/strspn.34
-rw-r--r--src/lib/libc/string/strstr.34
-rw-r--r--src/lib/libc/string/strtok.34
11 files changed, 39 insertions, 193 deletions
diff --git a/src/lib/libc/string/Makefile.inc b/src/lib/libc/string/Makefile.inc
index ff11ecac6c..1e84f70a98 100644
--- a/src/lib/libc/string/Makefile.inc
+++ b/src/lib/libc/string/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.7 1999/04/25 00:10:07 millert Exp $ 1# $OpenBSD: Makefile.inc,v 1.8 1999/09/21 16:44:01 espie Exp $
2 2
3# string sources 3# string sources
4.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string 4.PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/string ${LIBCSRCDIR}/string
@@ -114,13 +114,15 @@ strrchr.ln: rindex.c
114 lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \ 114 lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
115 ${LIBCSRCDIR}/string/rindex.c 115 ${LIBCSRCDIR}/string/rindex.c
116 116
117MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ 117MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 memccpy.3 memchr.3 \
118 memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ 118 memcmp.3 memcpy.3 memmove.3 memset.3 strcasecmp.3 strcat.3 \
119 strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 \ 119 strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 \
120 string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \ 120 string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \
121 strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3 121 strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3 strlcpy.3
122 122
123MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3 123MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3
124MLINKS+=strchr.3 index.3
125MLINKS+=strrchr.3 rindex.3
124MLINKS+=strcasecmp.3 strncasecmp.3 126MLINKS+=strcasecmp.3 strncasecmp.3
125MLINKS+=strcat.3 strncat.3 127MLINKS+=strcat.3 strncat.3
126MLINKS+=strcmp.3 strncmp.3 128MLINKS+=strcmp.3 strncmp.3
diff --git a/src/lib/libc/string/index.3 b/src/lib/libc/string/index.3
deleted file mode 100644
index e70b13c55b..0000000000
--- a/src/lib/libc/string/index.3
+++ /dev/null
@@ -1,82 +0,0 @@
1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\" must display the following acknowledgement:
16.\" This product includes software developed by the University of
17.\" California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\" may be used to endorse or promote products derived from this software
20.\" without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" $OpenBSD: index.3,v 1.5 1999/06/29 18:01:32 aaron Exp $
35.\"
36.Dd April 19, 1991
37.Dt INDEX 3
38.Os
39.Sh NAME
40.Nm index
41.Nd locate character in string
42.Sh SYNOPSIS
43.Fd #include <string.h>
44.Ft char *
45.Fn index "const char *s" "int c"
46.Sh DESCRIPTION
47The
48.Fn index
49function
50locates the first character matching
51.Fa c
52(converted to a
53.Li char )
54in the null-terminated string
55.Fa s .
56.Sh RETURN VALUES
57If the character
58.Fa c
59is found, a pointer to it is returned; otherwise,
60.Dv NULL
61is returned.
62If
63.Fa c
64is '\e0',
65.Fn index
66locates the terminating '\e0'.
67.Sh SEE ALSO
68.Xr memchr 3 ,
69.Xr rindex 3 ,
70.Xr strchr 3 ,
71.Xr strcspn 3 ,
72.Xr strpbrk 3 ,
73.Xr strrchr 3 ,
74.Xr strsep 3 ,
75.Xr strspn 3 ,
76.Xr strstr 3 ,
77.Xr strtok 3
78.Sh HISTORY
79An
80.Fn index
81function appeared in
82.At v6 .
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3
index 81c524458c..0bcdde698e 100644
--- a/src/lib/libc/string/memchr.3
+++ b/src/lib/libc/string/memchr.3
@@ -33,7 +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.\" $OpenBSD: memchr.3,v 1.3 1999/06/29 18:01:32 aaron Exp $ 36.\" $OpenBSD: memchr.3,v 1.4 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt MEMCHR 3 39.Dt MEMCHR 3
@@ -65,8 +65,6 @@ if no such byte exists within
65.Fa len 65.Fa len
66bytes. 66bytes.
67.Sh SEE ALSO 67.Sh SEE ALSO
68.Xr index 3 ,
69.Xr rindex 3 ,
70.Xr strchr 3 , 68.Xr strchr 3 ,
71.Xr strcspn 3 , 69.Xr strcspn 3 ,
72.Xr strpbrk 3 , 70.Xr strpbrk 3 ,
diff --git a/src/lib/libc/string/rindex.3 b/src/lib/libc/string/rindex.3
deleted file mode 100644
index d4bcbbea54..0000000000
--- a/src/lib/libc/string/rindex.3
+++ /dev/null
@@ -1,82 +0,0 @@
1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\" must display the following acknowledgement:
16.\" This product includes software developed by the University of
17.\" California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\" may be used to endorse or promote products derived from this software
20.\" without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" $OpenBSD: rindex.3,v 1.4 1999/06/29 18:01:33 aaron Exp $
35.\"
36.Dd April 19, 1991
37.Dt RINDEX 3
38.Os
39.Sh NAME
40.Nm rindex
41.Nd locate character in string
42.Sh SYNOPSIS
43.Fd #include <string.h>
44.Ft char *
45.Fn rindex "const char *s" "int c"
46.Sh DESCRIPTION
47The
48.Fn rindex
49function
50locates the last character
51matching
52.Fa c
53(converted to a
54.Li char )
55in the null-terminated string
56.Fa s .
57If the character c is found, a pointer to it is returned; otherwise,
58.Dv NULL
59is returned.
60If
61.Fa c
62is
63.Ql \e0 ,
64.Fn rindex
65locates the terminating
66.Ql \e0 .
67.Sh SEE ALSO
68.Xr index 3 ,
69.Xr memchr 3 ,
70.Xr strchr 3 ,
71.Xr strcspn 3 ,
72.Xr strpbrk 3 ,
73.Xr strrchr 3 ,
74.Xr strsep 3 ,
75.Xr strspn 3 ,
76.Xr strstr 3 ,
77.Xr strtok 3
78.Sh HISTORY
79A
80.Fn rindex
81function appeared in
82.At v6 .
diff --git a/src/lib/libc/string/strchr.3 b/src/lib/libc/string/strchr.3
index 2980f9bc87..5b117b83ca 100644
--- a/src/lib/libc/string/strchr.3
+++ b/src/lib/libc/string/strchr.3
@@ -33,18 +33,21 @@
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.\" $OpenBSD: strchr.3,v 1.5 1999/06/06 06:57:52 pjanzen Exp $ 36.\" $OpenBSD: strchr.3,v 1.6 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRCHR 3 39.Dt STRCHR 3
40.Os 40.Os
41.Sh NAME 41.Sh NAME
42.Nm strchr 42.Nm strchr ,
43.Nm index
43.Nd locate first occurrence of a character in a string 44.Nd locate first occurrence of a character in a string
44.Sh SYNOPSIS 45.Sh SYNOPSIS
45.Fd #include <string.h> 46.Fd #include <string.h>
46.Ft char * 47.Ft char *
47.Fn strchr "const char *s" "int c" 48.Fn strchr "const char *s" "int c"
49.Ft char *
50.Fn index "const char *s" "int c"
48.Sh DESCRIPTION 51.Sh DESCRIPTION
49The 52The
50.Fn strchr 53.Fn strchr
@@ -60,6 +63,11 @@ is
60.Fn strchr 63.Fn strchr
61locates the terminating 64locates the terminating
62.Ql \e0 . 65.Ql \e0 .
66.Pp
67The
68.Fn index
69function is an old synonym for
70.Fn strchr .
63.Sh RETURN VALUES 71.Sh RETURN VALUES
64The 72The
65.Fn strchr 73.Fn strchr
@@ -79,9 +87,7 @@ char *s = "foobar";
79p = strchr(s, 'o'); 87p = strchr(s, 'o');
80.Ed 88.Ed
81.Sh SEE ALSO 89.Sh SEE ALSO
82.Xr index 3 ,
83.Xr memchr 3 , 90.Xr memchr 3 ,
84.Xr rindex 3 ,
85.Xr strcspn 3 , 91.Xr strcspn 3 ,
86.Xr strpbrk 3 , 92.Xr strpbrk 3 ,
87.Xr strrchr 3 , 93.Xr strrchr 3 ,
@@ -95,3 +101,7 @@ The
95function 101function
96conforms to 102conforms to
97.St -ansiC . 103.St -ansiC .
104.Pp
105The
106.Fn index
107function is deprecated and shouldn't be used in new code.
diff --git a/src/lib/libc/string/strcspn.3 b/src/lib/libc/string/strcspn.3
index de6aff5ebd..6f7233a3e4 100644
--- a/src/lib/libc/string/strcspn.3
+++ b/src/lib/libc/string/strcspn.3
@@ -33,7 +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.\" $OpenBSD: strcspn.3,v 1.3 1999/06/04 16:39:27 aaron Exp $ 36.\" $OpenBSD: strcspn.3,v 1.4 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRCSPN 3 39.Dt STRCSPN 3
@@ -80,9 +80,7 @@ size_t span;
80span = strcspn(s, charset); 80span = strcspn(s, charset);
81.Ed 81.Ed
82.Sh SEE ALSO 82.Sh SEE ALSO
83.Xr index 3 ,
84.Xr memchr 3 , 83.Xr memchr 3 ,
85.Xr rindex 3 ,
86.Xr strchr 3 , 84.Xr strchr 3 ,
87.Xr strpbrk 3 , 85.Xr strpbrk 3 ,
88.Xr strrchr 3 , 86.Xr strrchr 3 ,
diff --git a/src/lib/libc/string/strpbrk.3 b/src/lib/libc/string/strpbrk.3
index 66b9cb2683..c7b7731ec2 100644
--- a/src/lib/libc/string/strpbrk.3
+++ b/src/lib/libc/string/strpbrk.3
@@ -33,7 +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.\" $OpenBSD: strpbrk.3,v 1.3 1999/06/29 18:01:33 aaron Exp $ 36.\" $OpenBSD: strpbrk.3,v 1.4 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRPBRK 3 39.Dt STRPBRK 3
@@ -62,9 +62,7 @@ occur anywhere in
62returns 62returns
63.Dv NULL . 63.Dv NULL .
64.Sh SEE ALSO 64.Sh SEE ALSO
65.Xr index 3 ,
66.Xr memchr 3 , 65.Xr memchr 3 ,
67.Xr rindex 3 ,
68.Xr strchr 3 , 66.Xr strchr 3 ,
69.Xr strcspn 3 , 67.Xr strcspn 3 ,
70.Xr strrchr 3 , 68.Xr strrchr 3 ,
diff --git a/src/lib/libc/string/strrchr.3 b/src/lib/libc/string/strrchr.3
index 9f288f0b5f..8de041810b 100644
--- a/src/lib/libc/string/strrchr.3
+++ b/src/lib/libc/string/strrchr.3
@@ -33,18 +33,21 @@
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.\" $OpenBSD: strrchr.3,v 1.4 1999/06/06 06:57:52 pjanzen Exp $ 36.\" $OpenBSD: strrchr.3,v 1.5 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRRCHR 3 39.Dt STRRCHR 3
40.Os 40.Os
41.Sh NAME 41.Sh NAME
42.Nm strrchr 42.Nm strrchr ,
43.Nm rindex
43.Nd locate last occurrence of a character in a string 44.Nd locate last occurrence of a character in a string
44.Sh SYNOPSIS 45.Sh SYNOPSIS
45.Fd #include <string.h> 46.Fd #include <string.h>
46.Ft char * 47.Ft char *
47.Fn strrchr "const char *s" "int c" 48.Fn strrchr "const char *s" "int c"
49.Ft char *
50.Fn rindex "const char *s" "int c"
48.Sh DESCRIPTION 51.Sh DESCRIPTION
49The 52The
50.Fn strrchr 53.Fn strrchr
@@ -60,6 +63,11 @@ is
60.Fn strrchr 63.Fn strrchr
61locates the terminating 64locates the terminating
62.Ql \e0 . 65.Ql \e0 .
66.Pp
67The
68.Fn rindex
69function is an old synonym for
70.Fn strrchr .
63.Sh RETURN VALUES 71.Sh RETURN VALUES
64The 72The
65.Fn strrchr 73.Fn strrchr
@@ -79,9 +87,7 @@ char *s = "foobar";
79p = strrchr(s, 'o'); 87p = strrchr(s, 'o');
80.Ed 88.Ed
81.Sh SEE ALSO 89.Sh SEE ALSO
82.Xr index 3 ,
83.Xr memchr 3 , 90.Xr memchr 3 ,
84.Xr rindex 3 ,
85.Xr strchr 3 , 91.Xr strchr 3 ,
86.Xr strcspn 3 , 92.Xr strcspn 3 ,
87.Xr strpbrk 3 , 93.Xr strpbrk 3 ,
@@ -95,3 +101,7 @@ The
95function 101function
96conforms to 102conforms to
97.St -ansiC . 103.St -ansiC .
104.Pp
105The
106.Fn rindex
107function is deprecated and shouldn't be used in new code.
diff --git a/src/lib/libc/string/strspn.3 b/src/lib/libc/string/strspn.3
index f8834dfecc..8274a06b65 100644
--- a/src/lib/libc/string/strspn.3
+++ b/src/lib/libc/string/strspn.3
@@ -33,7 +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.\" $OpenBSD: strspn.3,v 1.4 1999/06/04 16:30:01 aaron Exp $ 36.\" $OpenBSD: strspn.3,v 1.5 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRSPN 3 39.Dt STRSPN 3
@@ -75,9 +75,7 @@ size_t span;
75span = strspn(s, charset); 75span = strspn(s, charset);
76.Ed 76.Ed
77.Sh SEE ALSO 77.Sh SEE ALSO
78.Xr index 3 ,
79.Xr memchr 3 , 78.Xr memchr 3 ,
80.Xr rindex 3 ,
81.Xr strchr 3 , 79.Xr strchr 3 ,
82.Xr strcspn 3 , 80.Xr strcspn 3 ,
83.Xr strpbrk 3 , 81.Xr strpbrk 3 ,
diff --git a/src/lib/libc/string/strstr.3 b/src/lib/libc/string/strstr.3
index 773163ecc6..3287cce0ce 100644
--- a/src/lib/libc/string/strstr.3
+++ b/src/lib/libc/string/strstr.3
@@ -33,7 +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.\" $OpenBSD: strstr.3,v 1.3 1999/06/29 18:01:33 aaron Exp $ 36.\" $OpenBSD: strstr.3,v 1.4 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRSTR 3 39.Dt STRSTR 3
@@ -71,9 +71,7 @@ otherwise
71returns a pointer to the first character of the first occurrence of 71returns a pointer to the first character of the first occurrence of
72.Fa little . 72.Fa little .
73.Sh SEE ALSO 73.Sh SEE ALSO
74.Xr index 3 ,
75.Xr memchr 3 , 74.Xr memchr 3 ,
76.Xr rindex 3 ,
77.Xr strchr 3 , 75.Xr strchr 3 ,
78.Xr strcspn 3 , 76.Xr strcspn 3 ,
79.Xr strpbrk 3 , 77.Xr strpbrk 3 ,
diff --git a/src/lib/libc/string/strtok.3 b/src/lib/libc/string/strtok.3
index 287d1bf131..afe851f5bc 100644
--- a/src/lib/libc/string/strtok.3
+++ b/src/lib/libc/string/strtok.3
@@ -33,7 +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.\" $OpenBSD: strtok.3,v 1.8 1999/07/03 16:21:31 aaron Exp $ 36.\" $OpenBSD: strtok.3,v 1.9 1999/09/21 16:44:01 espie Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt STRTOK 3 39.Dt STRTOK 3
@@ -112,9 +112,7 @@ tokens[2] will point to
112and tokens[3] will point to 112and tokens[3] will point to
113.Qq cow . 113.Qq cow .
114.Sh SEE ALSO 114.Sh SEE ALSO
115.Xr index 3 ,
116.Xr memchr 3 , 115.Xr memchr 3 ,
117.Xr rindex 3 ,
118.Xr strchr 3 , 116.Xr strchr 3 ,
119.Xr strcspn 3 , 117.Xr strcspn 3 ,
120.Xr strpbrk 3 , 118.Xr strpbrk 3 ,