目录
strstr的作用
查找一个字符串
strstr所需要的头文件
因为strstr与字符串有关,所以所需要的头文件是<string.h>
strstr的参数
strstr函数的返回值
Each of these functions returns a pointer to the first occurrence of strCharSet in string, or NULL if strCharSet does not appear in string. If strCharSet points to a string of zero length, the function returns string.
函数返回指向第一次发现这个字符串首元素的指针,如果没有发现则返回空指针