Code Snippets C

or a null pointer if there str2 is not part of str1
//Declaration: char *strstr(const char *str1, const char *str2);
//Return: It returns a null pointer if no match is found.
#include
#include
int main(void)
{
char *p;
p = strstr("I Love Clementine", "hey");
printf(p);
return 0;
}