strstr
—find string segment#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
Portability
strstr
is ANSI C.
strstr
requires no supporting OS subroutines.