我是靠谱客的博主 无私芒果,这篇文章主要介绍strstr 和 strchr有什么区别,现在分享给大家,希望可以做个参考。

The strchr() function returns a pointer to the first occurrence of the character c in the string s. 

这个是查找字符的, 


The strstr() function finds the first occurrence of the substring needle in the string haystack. The terminating '' characters are not compared. 

这个是查找子串的。 

最后

以上就是无私芒果最近收集整理的关于strstr 和 strchr有什么区别的全部内容,更多相关strstr内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部