最近在搞Windows往Linux上代码移植,发现Linux上无函数strcmpi ,即使是sting.h头文件也没有。发现Linux上有类似函数strcasecmp,于是加入上述宏定义.
#ifndef WIN32
#define strcmpi strcasecmp
#endif
最近在搞Windows往Linux上代码移植,发现Linux上无函数strcmpi ,即使是sting.h头文件也没有。发现Linux上有类似函数strcasecmp,于是加入上述宏定义.
#ifndef WIN32
#define strcmpi strcasecmp
#endif