int compare(const char * str1,const char * str2 )
{ int t = 0 ;
while( ! (t = *(unsigned char *)str1 - *(unsigned char *)str2) && *str2)//就是这一行
str1++, str2++;
if ( t < 0 ) t = -1 ;
else if ( t > 0 ) t = 1 ;
return( t ); }
慕码人2483693
Helenr
Qyouu
随时随地看视频慕课网APP
相关分类