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