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