语法:
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;
}
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;
}