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