STRSTR(3) NEWLIB STRSTR(3)NAME
6.36 `strstr'--find string segment
SYNOPSIS
#include <string.h>
char *strstr(const char *S1, const char *S2);
DESCRIPTION
Locates the first occurrence in the string pointed to by S1 of the
sequence of characters in the string pointed to by S2 (excluding the
terminating null character).
RETURNS
Returns a pointer to the located string segment, or a null pointer if
the string S2 is not found. If S2 points to a string with zero length,
S1 is returned.
PORTABILITY
`strstr' is ANSI C.
`strstr' requires no supporting OS subroutines.
SEE ALSOstrstr is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 STRSTR(3)