summaryrefslogtreecommitdiffstats
path: root/man3/strstr.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/strstr.3')
-rw-r--r--man3/strstr.313
1 files changed, 6 insertions, 7 deletions
diff --git a/man3/strstr.3 b/man3/strstr.3
index d07c0f4..ef455cf 100644
--- a/man3/strstr.3
+++ b/man3/strstr.3
@@ -11,7 +11,7 @@
.\" Added history, aeb, 980113.
.\" 2005-05-05 mtk: added strcasestr()
.\"
-.TH strstr 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH strstr 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
strstr, strcasestr \- locate a substring
.SH LIBRARY
@@ -20,12 +20,12 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <string.h>
-.PP
+.P
.BI "char *strstr(const char *" haystack ", const char *" needle );
-.PP
+.P
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
-.PP
+.P
.BI "char *strcasestr(const char *" haystack ", const char *" needle );
.fi
.SH DESCRIPTION
@@ -36,7 +36,7 @@ function finds the first occurrence of the substring
in the string
.IR haystack .
The terminating null bytes (\[aq]\e0\[aq]) are not compared.
-.PP
+.P
The
.BR strcasestr ()
function is like
@@ -45,7 +45,7 @@ but ignores the case of both arguments.
.SH RETURN VALUE
These functions return a pointer to the beginning of the
located substring, or NULL if the substring is not found.
-.PP
+.P
If
.I needle
is the empty string,
@@ -71,7 +71,6 @@ T{
.BR strcasestr ()
T} Thread safety MT-Safe locale
.TE
-.sp 1
.SH STANDARDS
.TP
.BR strstr ()