aboutsummaryrefslogtreecommitdiffstats
path: root/man3/strstr.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/strstr.3')
-rw-r--r--man3/strstr.312
1 files changed, 6 insertions, 6 deletions
diff --git a/man3/strstr.3 b/man3/strstr.3
index 061d46a482..abb687aa17 100644
--- a/man3/strstr.3
+++ b/man3/strstr.3
@@ -58,12 +58,6 @@ but ignores the case of both arguments.
.SH "RETURN VALUE"
These functions return a pointer to the beginning of the
substring, or NULL if the substring is not found.
-.SH BUGS
-Early versions of Linux libc (like 4.5.26) would not allow
-an empty \fIneedle\fP argument for
-.BR strstr ().
-Later versions (like 4.6.27) work correctly,
-and return \fIhaystack\fP when \fIneedle\fP is empty.
.SH "CONFORMING TO"
The
.BR strstr ()
@@ -71,6 +65,12 @@ function conforms to C89 and C99.
The
.BR strcasestr ()
function is a non-standard extension.
+.SH BUGS
+Early versions of Linux libc (like 4.5.26) would not allow
+an empty \fIneedle\fP argument for
+.BR strstr ().
+Later versions (like 4.6.27) work correctly,
+and return \fIhaystack\fP when \fIneedle\fP is empty.
.SH "SEE ALSO"
.BR index (3),
.BR memchr (3),