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