From: Alejandro Colomar Date: Sat, 16 May 2026 19:30:40 +0000 (+0200) Subject: man/man3/str[case]str.3: Tweak after split X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=29d801dc6cdc7e68ca809db453d4ffdd1870355b;p=thirdparty%2Fman-pages.git man/man3/str[case]str.3: Tweak after split Signed-off-by: Alejandro Colomar --- diff --git a/man/man3/strcasestr.3 b/man/man3/strcasestr.3 index 9705672bd..d0cac2f1f 100644 --- a/man/man3/strcasestr.3 +++ b/man/man3/strcasestr.3 @@ -12,15 +12,14 @@ Standard C library .RI ( libc ,\~ \-lc ) .SH SYNOPSIS .nf -.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" +.BR #define\~_GNU_SOURCE " // See feature_test_macros(7)" .B #include .P .BI "char *strcasestr(const char *" haystack ", const char *" needle ); .fi .SH DESCRIPTION -The .BR strcasestr () -function is like +is like .BR strstr (), but ignores the case of both arguments. .SH RETURN VALUE diff --git a/man/man3/strstr.3 b/man/man3/strstr.3 index 5d9cbb091..3749c3e51 100644 --- a/man/man3/strstr.3 +++ b/man/man3/strstr.3 @@ -6,7 +6,7 @@ .\" .TH strstr 3 (date) "Linux man-pages (unreleased)" .SH NAME -strstr \- locate a substring +strstr \- string search substring .SH LIBRARY Standard C library .RI ( libc ,\~ \-lc ) @@ -17,12 +17,12 @@ Standard C library .BI "char *strstr(const char *" haystack ", const char *" needle ); .fi .SH DESCRIPTION -The .BR strstr () -function finds the first occurrence of the substring +finds the first occurrence of the substring .I needle in the string .IR haystack . +.P The terminating null bytes (\[aq]\[rs]0\[aq]) are not compared. .P It is equivalent to