Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151504513
D51424.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D51424.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D51424: memchr.3: mention the len argument in the functions description
Attached
Detach File
Event Timeline
Log In to Comment