Loading...
--- Libc/Libc-763.13/string/FreeBSD/memchr.3.patch
+++ Libc/Libc-594.9.5/string/FreeBSD/memchr.3.patch
@@ -1,12 +1,10 @@
---- memchr.3.bsdnew 2009-11-30 13:52:21.000000000 -0800
-+++ memchr.3 2009-11-30 14:18:10.000000000 -0800
-@@ -43,9 +43,11 @@
+--- _SB/Libc/string/FreeBSD/memchr.3 2003-05-20 15:23:54.000000000 -0700
++++ _SB/Libc/string/FreeBSD/memchr.3.edit 2006-06-28 16:55:53.000000000 -0700
+@@ -47,7 +47,11 @@
.Sh SYNOPSIS
.In string.h
.Ft void *
-.Fn memchr "const void *b" "int c" "size_t len"
--.Ft void *
--.Fn memrchr "const void *b" "int c" "size_t len"
+.Fo memchr
+.Fa "const void *s"
+.Fa "int c"
@@ -15,52 +13,20 @@
.Sh DESCRIPTION
The
.Fn memchr
-@@ -54,28 +56,16 @@ locates the first occurrence of
+@@ -56,14 +60,14 @@
.Fa c
(converted to an unsigned char)
in string
--.Fa b .
--.Pp
--The
--.Fn memrchr
--function behaves like
--.Fn memchr ,
--except that it locates the last occurrence of
--.Fa c
--in string
-.Fa b .
+.Fa s .
.Sh RETURN VALUES
The
.Fn memchr
--and
--.Fn memrchr
--functions
--return a pointer to the byte located,
-+function
-+returns a pointer to the byte located,
+ function
+ returns a pointer to the byte located,
or NULL if no such byte exists within
-.Fa len
+.Fa n
bytes.
.Sh SEE ALSO
--.Xr memmem 3 ,
.Xr strchr 3 ,
- .Xr strcspn 3 ,
- .Xr strpbrk 3 ,
-@@ -91,15 +81,3 @@ The
- function
- conforms to
- .St -isoC .
--.Pp
--The
--.Fn memrchr
--function is a GNU extension and conforms to no standard.
--.Sh HISTORY
--The
--.Fn memrchr
--function first appeared in GNU libc 2.1.91, this implementation
--first appeared in
--.Fx 6.4 ,
--coming from
--.Ox 4.3 .