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));
}
{
while (toupper((unsigned char)*s1) == toupper((unsigned char)*s2++)) if (*s1++ == '/0') return 0;
return(toupper((unsigned char)*s1) - toupper((unsigned char)*--s2));
}
相关文章推荐
- C++ VC strncasecmp函数仿真
- C++ VC strncat函数仿真
- 晒晒C++:虚函数的真相(VC编译器如何实现“virtual ”规则)
- VB、VC调用C++dll 函数、变量、类
- matalb7与VC2008混合编程DLL方法(一)m函数打包成C\C++DLL库
- C++和VC中获取系统时间函数
- 晒晒C++:虚函数的真相(VC编译器如何实现“virtual ”规则)
- VC C/C++ 函数调用约定
- 解决vc C++ 调用 C 函数时unresolved external symbol " __cdecl 。。。无法解析的外部符合
- C++ vc中怎么使用SendMessage自定义消息函数
- C++函数重定义、重载、重写 详细出处参考:http://www.ityoudao.com/Web/VC_588_828.html
- 在javascript中利用window.external调用C++代码,调用VC函数
- 晒晒C++:虚函数的真相(VC编译器如何实现“virtual ”规则)(转载的非原创)
- 如何实现虚函数的规则(VC中 C++ virtual 编译规则)
- C++编译期函数/变量检测技术,仿真VC关键字__if_exists
- C++/VC中ANSI与UNICODE中字符定义和函数对照表
- 这么详细的分类 VC/C++源代码网站你见过没有? VC/C++中的每一个方法,每一个操作,每一个头文件,每一个函数,每一个类.每一个属性,每一个事件都有相应的范例代码
- 晒晒C++:虚函数的真相(VC编译器如何实现“virtual ”规则)
- 解决c++ 调用lua 方式! 避免重复写逻辑对应的lua 函数
- C++中不能被声明为虚函数的函数