check substring exists in a string in C - Stack Overflow
The same will be achived with this simpler code: Why use these: int main(void) { char mainstring[]="The quick brown fox jumps over the lazy dog"; char substring[20]; int i=0; puts("enter the sub stirng to find"); fgets(substring, sizeof(substring), stdin ...