Syntax
#include <string.h>
char *strstr(const char *string1, const char *string2);
Arguments
string1 character string to be searched
string2 character string to find in string1
Return Value
Pointer of character string string2 included in character string string1.
If character string
string2 is not included, NULL is returned
Description
It locates the first occurrence of string2 (excluding the NULL terminating character) in string1, and then returns either a pointer to the found string or a NULL if the string is not found.