]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3/strchrnul.3: Compare strchrnul(3) to strchr(3) and strnul(3)
authorAlejandro Colomar <alx@kernel.org>
Wed, 25 Feb 2026 17:11:30 +0000 (18:11 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 25 Feb 2026 22:17:15 +0000 (23:17 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/strchrnul.3

index debf0520a3524aa1c1975b0faafc8f7e2e9e0f82..de41dab2bd0feb891d9d6eb51dbb419d85aacf4f 100644 (file)
@@ -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 ()