how to see if a strings wnds with \0 in c code example Example: check if string in string c if(strstr(sent, word) != NULL) { /* ... */ }