.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" References consulted:
.\" Linux libc source code
.\" Added history, aeb, 980113.
.\" 2005-05-05 mtk: added strcasestr()
.\"
-.TH STRSTR 3 2010-09-20 "GNU" "Linux Programmer's Manual"
+.TH STRSTR 3 2011-09-28 "GNU" "Linux Programmer's Manual"
.SH NAME
strstr, strcasestr \- locate a substring
.SH SYNOPSIS
.BR strstr ()
function finds the first occurrence of the substring
\fIneedle\fP in the string \fIhaystack\fP.
-The terminating \(aq\\0\(aq characters are not compared.
+The terminating null bytes (\(aq\\0\(aq) are not compared.
The
.BR strcasestr ()
function is like
.BR strstr (),
but ignores the case of both arguments.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
These functions return a pointer to the beginning of the
substring, or NULL if the substring is not found.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
The
.BR strstr ()
function conforms to C89 and C99.
.BR strstr ().
Later versions (like 4.6.27) work correctly,
and return \fIhaystack\fP when \fIneedle\fP is empty.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR index (3),
.BR memchr (3),
.BR rindex (3),