您的位置:首页 > 编程语言 > C语言/C++

C++ VC strcasecmp函数仿真

2007-12-23 22:19 281 查看
int strcasecmp(char *s1, char *s2)
{
while (toupper((unsigned char)*s1) == toupper((unsigned char)*s2++)) if (*s1++ == '/0') return 0;
return(toupper((unsigned char)*s1) - toupper((unsigned char)*--s2));
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: