char *Strstr( const char *string, const char *strCharSet )
{
size_t i;
if(!*string)
{
if(!*strCharSet)
return (char *)string;
return NULL;
}
while(*string)
{
i = 0;
while(true)
{
if(!strCharSet[i])
return (char *)string;
if(strCharSet[i] != string[i])
break;
i++;
}
string++;
}
return NULL;
}
C语言库函数源代码
最新推荐文章于 2022-04-03 18:27:50 发布
1620

被折叠的 条评论
为什么被折叠?



