摘要: 通过函数的定义来区分: 1.strstr: 返回子串出现的第一次位置 char *strstr(const char *haystack, const char *needle) 可见,strstr函数搜索的是一个const char*型的数据,即字符串常量 2.strchr: 返回字符出现的第一次 阅读全文
posted @ 2016-10-08 18:04 jiu~ 阅读(768) 评论(0) 推荐(0) 编辑