strstr
Subroutine
string strstr(const char *s, const char *subs)
strstr
returns a pointer to the first occurrence of the substring subs in the string s
. If s
is an empty string, strstr
returns a pointer to an empty string. If no match is found, strstr
returns 0.