#include <stdio.h>
#include <stdlib.h>

int main()
{
    char cuv[30],text[256],*p;
    printf("Introduceti textul : ");
    gets(text);
    printf("Introduceti cuvantul cautat : ");
    gets(cuv);
    p=strstr(text,cuv);
    if(p==NULL) printf("Cuvantul nu a fost gasit.");
    else printf("Cuvantul a fost gasit.");
    return 0;
}
