strstr函数时间:2022-11-13 21:57:24 语法: char my_strstr(const char* str1, const char* str2); 一般用法: int main(){char str1[] = { "abcdefgh" };char str2[] = { "def" };char* p = strstr(str1, str2);printf("%s\n", p);return 0;}