]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3/strstr.3: Compare strstr(3) to memmem(3)
authorAlejandro Colomar <alx@kernel.org>
Wed, 25 Feb 2026 19:13:35 +0000 (20:13 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 25 Feb 2026 22:17:17 +0000 (23:17 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/strstr.3

index ea091e066f3435ca2edc2ff40bf8b54efdc5ebb1..c04d99d2d8835426f06cafc927122da81e209bab 100644 (file)
@@ -30,6 +30,14 @@ in the string
 .IR haystack .
 The terminating null bytes (\[aq]\[rs]0\[aq]) are not compared.
 .P
+It is equivalent to
+.P
+.in +4n
+.EX
+memmem(haystack, strlen(haystack), needle, strlen(needle))
+.EE
+.in
+.P
 The
 .BR strcasestr ()
 function is like