aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2022-12-29 20:21:52 +0100
committerAlejandro Colomar <alx@kernel.org>2022-12-29 20:21:52 +0100
commit94877d15a4c3783c75e9e3c16077e31323b0babd (patch)
treee70bcb01ab95e9b893b1ef165caaf105725a6c79
parent8341e8b683f1e9582956a8a98065865a96b0798f (diff)
downloadman-pages-94877d15a4c3783c75e9e3c16077e31323b0babd.tar.gz
memchr.3: The function always returns a pointer to the match
Otherwise, it means we're deep into UB lands, and there be dragons. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/memchr.33
1 files changed, 1 insertions, 2 deletions
diff --git a/man3/memchr.3 b/man3/memchr.3
index d14014d623..10bc35b9d7 100644
--- a/man3/memchr.3
+++ b/man3/memchr.3
@@ -97,8 +97,7 @@ the given memory area.
.PP
The
.BR rawmemchr ()
-function returns a pointer to the matching byte, if one is found.
-If no matching byte is found, the result is unspecified.
+function returns a pointer to the matching byte.
.SH VERSIONS
.BR rawmemchr ()
first appeared in glibc 2.1.