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