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