diff options
| author | Alejandro Colomar <alx@kernel.org> | 2026-02-25 20:13:35 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2026-02-25 23:17:17 +0100 |
| commit | bb673cd4bf73db3ea1c2d1dc6ccae0144477cbe4 (patch) | |
| tree | c5b899fb139933cdc380133067e8217479a5cd56 | |
| parent | 510412de9d35e65c52d420d8b828a77b686a7269 (diff) | |
| download | man-pages-bb673cd4bf73db3ea1c2d1dc6ccae0144477cbe4.tar.gz | |
man/man3/strstr.3: Compare strstr(3) to memmem(3)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man3/strstr.3 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man/man3/strstr.3 b/man/man3/strstr.3 index ea091e066f..c04d99d2d8 100644 --- a/man/man3/strstr.3 +++ b/man/man3/strstr.3 @@ -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 |
