strcmp()函数
/*两个字符串比较大小*/
int strcmp(const char *src,const char *dst){
int ret=0;
while(!(ret=*(unsigned char*)src-*(unsigned char*)dst)&&*src)
++src,++dst;
if(ret<0)ret=-1;
else if(ret>0)ret=1;
return(ret);
}
/*两个字符串比较大小*/
int strcmp(const char *src,const char *dst){
int ret=0;
while(!(ret=*(unsigned char*)src-*(unsigned char*)dst)&&*src)
++src,++dst;
if(ret<0)ret=-1;
else if(ret>0)ret=1;
return(ret);
}