【FEOM MSDN &&百科】
原型:char *strstr(const char *str1,const char *str2);
#include<string.h>
找出str2字符串在str1字符串中第一次出现的位置(不包括str2的串结束符)。返回该位置的指针,如果找不到,返回空指针。
int main()
{
char *s="Golden"
char *l="go";
char *p=strstr(s,l);
}
【FEOM MSDN &&百科】
原型:char *strstr(const char *str1,const char *str2);
#include<string.h>
找出str2字符串在str1字符串中第一次出现的位置(不包括str2的串结束符)。返回该位置的指针,如果找不到,返回空指针。
int main()
{
char *s="Golden"
char *l="go";
char *p=strstr(s,l);
}