Page MenuHomeFreeBSD

D51424.id.diff
No OneTemporary

D51424.id.diff

diff --git a/lib/libc/string/memchr.3 b/lib/libc/string/memchr.3
--- a/lib/libc/string/memchr.3
+++ b/lib/libc/string/memchr.3
@@ -52,7 +52,10 @@
(converted to an
.Vt "unsigned char" )
in string
-.Fa b .
+.Fa b ,
+limited to at most
+.Fa len
+characters.
.Pp
The
.Fn memrchr
@@ -61,15 +64,18 @@
except that it locates the last occurrence of
.Fa c
in string
-.Fa b .
+.Fa b ,
+limited to the first
+.Fa len
+characters.
.Sh RETURN VALUES
The
.Fn memchr
and
.Fn memrchr
-functions
-return a pointer to the byte located,
-or NULL if no such byte exists within
+functions return a pointer to the byte located, or
+.Dv NULL
+if no such byte exists within
.Fa len
bytes.
.Sh SEE ALSO

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 9, 9:25 PM (1 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31156011
Default Alt Text
D51424.id.diff (696 B)

Event Timeline