摘要: 说明: 原型:char *strstr(char *haystack, char *needle); 用法:#include 功能:从字符串haystack中寻找needle第一次出现的位置(不比较结束符NULL)。 说明:返回指向第一次出现needle位置的指针,如果没找到则返回NULL。 函数myStrstr是我自己写的;函数standardStrstr是标准函数,可对比参考;#include#include#includechar* myStrstr(char srce[],char check[]){ assert(NULL != sr... 阅读全文
posted @ 2014-02-14 17:00 McQueen1987 阅读(351) 评论(0) 推荐(0)