在字符串中寻找子字符串

stone38881 66 0 其他文档 2019-09-25 17:09:38

c语言代码,实现在一字符串中查询子字符串,如果找到,返回子字符串位置WritethefollowingfunctioninC.stripos—Findpositionoffirstoccurrenceofacase-insensitivestringintstripos(char*haystack,char*needle,intoffset)Returnsthenumericpositionofthefirstoccurrenceofneedleinthehaystackstring.Notethattheneedlemaybeastringofone

用户评论
请输入评论内容
评分:
暂无评论