Find part of string in string code example
Example 1: check if string in string c
if(strstr(sent, word) != NULL) {
/* ... */
}
Example 2: python str contains word
fullstring = "StackAbuse"
substring = "tack"
if substring in fullstring:
print "Found!"
else:
print "Not found!"