在字符串中寻找子字符串

上传:stone38881 浏览: 66 推荐: 0 文件:其他文档 大小:500kb 上传时间:2019-09-25 17:59:38 版权申诉
c语言代码,实现在一字符串中查询子字符串,如果找到,返回子字符串位置WritethefollowingfunctioninC.stripos—Findpositionoffirstoccurrenceofacase-insensitivestringintstripos(char*haystack,char*needle,intoffset)Returnsthenumericpositionofthefirstoccurrenceofneedleinthehaystackstring.Notethattheneedlemaybeastringofone
上传资源
用户评论