To search a sub string from the string, we use a function
known as strstr(). If the substring is found into the string it will return a
positive value, when the substring is not matched to the string than it will
return a null pointer.
Sy:
variable = strstr(
string, substring);
ex:
flag = strstr( str, “Hello” );
No comments:
Post a Comment