Program in C to find string within a string

Write a program in C to find string within a string

#include <stdio.h>
#include <conio.h>
void main ()

{
          char *k="Borland International", *g, *p;
          clrscr ();
          printf ("Enter string to find: ");
          gets (g);
          p=strstr(k,g);
          printf ("%s",p);
          getch ();
}


Post a Comment