摘要:
字符串比较函数,这个函数也比较常用:view plaincopy to clipboardprint?int strcmp(const char* str1,const char* str2){ assert(str1!=NULL&&str2!=NULL); while(*str1&&*str2&&*str1==*str2){ str1++; str2++; } if(*str1==*str2&&*str1==0) return 0;//equal else if(*str1... 阅读全文
posted @ 2012-08-15 23:17
Eric-Yang
阅读(780)
评论(0)
推荐(0)

浙公网安备 33010602011771号