summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memchr.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/memchr.3')
-rw-r--r--src/lib/libc/string/memchr.326
1 files changed, 9 insertions, 17 deletions
diff --git a/src/lib/libc/string/memchr.3 b/src/lib/libc/string/memchr.3
index 265711e3b5..ddca58bc5e 100644
--- a/src/lib/libc/string/memchr.3
+++ b/src/lib/libc/string/memchr.3
@@ -13,11 +13,7 @@
13.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in the 14.\" notice, this list of conditions and the following disclaimer in the
15.\" documentation and/or other materials provided with the distribution. 15.\" documentation and/or other materials provided with the distribution.
16.\" 3. All advertising materials mentioning features or use of this software 16.\" 3. Neither the name of the University nor the names of its contributors
17.\" must display the following acknowledgement:
18.\" This product includes software developed by the University of
19.\" California, Berkeley and its contributors.
20.\" 4. Neither the name of the University nor the names of its contributors
21.\" may be used to endorse or promote products derived from this software 17.\" may be used to endorse or promote products derived from this software
22.\" without specific prior written permission. 18.\" without specific prior written permission.
23.\" 19.\"
@@ -33,8 +29,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
35.\" 31.\"
36.\" from: @(#)memchr.3 5.4 (Berkeley) 6/29/91 32.\" $OpenBSD: memchr.3,v 1.6 2003/06/02 20:18:38 millert Exp $
37.\" $Id: memchr.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $
38.\" 33.\"
39.Dd June 29, 1991 34.Dd June 29, 1991
40.Dt MEMCHR 3 35.Dt MEMCHR 3
@@ -49,23 +44,21 @@
49.Sh DESCRIPTION 44.Sh DESCRIPTION
50The 45The
51.Fn memchr 46.Fn memchr
52function 47function locates the first occurrence of
53locates the first occurrence of
54.Fa c 48.Fa c
55(converted to an unsigned char) 49(converted to an
50.Li unsigned char )
56in string 51in string
57.Fa b . 52.Fa b .
58.Sh RETURN VALUES 53.Sh RETURN VALUES
59The 54The
60.Fn memchr 55.Fn memchr
61function 56function returns a pointer to the byte located, or
62returns a pointer to the byte located, 57.Dv NULL
63or NULL if no such byte exists within 58if no such byte exists within
64.Fa len 59.Fa len
65bytes. 60bytes.
66.Sh SEE ALSO 61.Sh SEE ALSO
67.Xr index 3 ,
68.Xr rindex 3 ,
69.Xr strchr 3 , 62.Xr strchr 3 ,
70.Xr strcspn 3 , 63.Xr strcspn 3 ,
71.Xr strpbrk 3 , 64.Xr strpbrk 3 ,
@@ -77,6 +70,5 @@ bytes.
77.Sh STANDARDS 70.Sh STANDARDS
78The 71The
79.Fn memchr 72.Fn memchr
80function 73function conforms to
81conforms to
82.St -ansiC . 74.St -ansiC .