声明
下面是 strstr() 函数的声明。
char strstr(const char haystack, const char *needle)
参数
• haystack -- 要被检索的 C 字符串。
• needle -- 在 haystack 字符串内要搜索的小字符串。
返回值
该函数返回在 haystack 中第一次出现 needle 字符串的位置,如果未找到则返回 null。
来自 https://www.runoob.com/cprogramming/c-function-strstr.html