c program to check if a string exist in another string code example Example: check if string in string c if(strstr(sent, word) != NULL) { /* ... */ }