aboutsummaryrefslogtreecommitdiffstats
diff options
authorAlejandro Colomar <alx@kernel.org>2026-02-25 18:11:30 +0100
committerAlejandro Colomar <alx@kernel.org>2026-02-25 23:17:15 +0100
commit9eeafcc8e528ce61364ebdf46f3fbd5db74cefe3 (patch)
tree83353fa990035275c2a40b4c4729e74100213bfa
parent6c600ed9a9bc8022a02eb90bec80fcf439c689f4 (diff)
downloadman-pages-9eeafcc8e528ce61364ebdf46f3fbd5db74cefe3.tar.gz
man/man3/strchrnul.3: Compare strchrnul(3) to strchr(3) and strnul(3)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man3/strchrnul.38
1 files changed, 8 insertions, 0 deletions
diff --git a/man/man3/strchrnul.3 b/man/man3/strchrnul.3
index debf0520a3..de41dab2bd 100644
--- a/man/man3/strchrnul.3
+++ b/man/man3/strchrnul.3
@@ -28,6 +28,14 @@ is not found in
then it returns a pointer to the null byte
at the end of
.IR s .
+.P
+It is equivalent to
+.P
+.in +4n
+.EX
+strchr(s, c) ?: strnul(s)
+.EE
+.in
.SH RETURN VALUE
The
.BR strchrnul ()