这些函数都是比较字符串小写的,忽略大写,出入的字符串都将按照小写比较
Perform a lowercase comparison of strings.

函数原型:

int _stricmp( const char
*string1, const char *string2
);        //#include <string.h>

int _wcsicmp( const wchar_t
*string1, const wchar_t
*string2 );    //#include <string.h> or  <wchar.h>

int _mbsicmp( const unsigned char
*string1, const unsigned char_t
*string2 );    //#include <mbstring.h>

返回值:

: string1 identical to string2         <0:string1 less than  string2             >0:string1 greater than string2

举例:
char *str1 = "abc";
char *str2 = "AbC";
int  nResult = _stricmp(str1, str2);         //nResult = 0

wchar_t szStr1[] = "asdfg";
wchar_t szStr2[] = "AsDfG";
int nResult = _wcsicmp(szStr1, szStr2);      //nResult = 0

至于_mbsicmp是比较无符号字符串的,可根据情况自行使用

最新文章

  1. (一)Linux相关内容的简介
  2. link与import的区别
  3. 深入浅出设计模式——原型模式(Prototype Pattern)
  4. java12-6 冒泡排序法和选择排序法
  5. libevent+bufferevent总结
  6. 8.3 MPI
  7. (转)TCP注册端口号大全
  8. 浅谈JavaScript和DOM中的类数组对象
  9. 抓包工具Charles的使用教程
  10. Ajax 提交 数据含特殊字符 出现500错误
  11. Spark记录-Scala程序例子(函数/List/match/option/泛型/隐式转换)
  12. C++ code:函数指针数组
  13. struts2参数转换器用法---2
  14. git安装及git命令的用法
  15. ASP.NET Web API 框架研究 Controller实例的销毁
  16. Linux中awk命令的简单用法
  17. web 应用请求乱码问题
  18. Shrio02 Realm作用、自定义简洁Realm、Realm实现类使用
  19. selenium和appium启动的感悟
  20. 【Hadoop系列】linux下 root用户免密码登录远程主机 ssh

热门文章

  1. python 基本常用数据类型
  2. csps模拟84Smooth,Six,Walker题解
  3. hexo 错误汇总
  4. JS程序的基本语法
  5. day 58 Django基础六之ORM中的锁和事务
  6. KVM热添加技术
  7. Mysql配置innodb_flush_log_at_trx_commit
  8. mint-ui loadmore 上拉加载的坑
  9. 01_springboot2.x之springboot入门
  10. Spring 基于Aspectj切面表达式(6)