// CPP program to illustrate strstr()
#include <string.h>
#include <stdio.h>
int main()
{
// Take any two strings
char s1[] = "Fun with STL";
char s2[] = "STL";
char* p;
// Find first occurrence of s2 in s1
p = strstr(s1, s2);
// Prints the result
if (p) {
strcpy(p, "Strings");
printf("%s", s1);
} else
printf("String not found
");
return 0;
}