返回信息流在linxu下,这个函数具体代码是什么呢?
这是一条镜像帖。来源:北邮人论坛 / cpp / #33046同步于 2009/12/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
关于strcasecmp这个函数
cl233
2009/12/8镜像同步8 回复
订阅后,新回复会通过你的通知中心匿名送达。
8 条回复
int
__strcasecmp (s1, s2 LOCALE_PARAM)
const char *s1;
const char *s2;
LOCALE_PARAM_DECL
{
const unsigned char *p1 = (const unsigned char *) s1;
const unsigned char *p2 = (const unsigned char *) s2;
int result;
if (p1 == p2)
return 0;
while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0)
if (*p1++ == '\0')
break;
return result;
}
【 在 SandFlee 的大作中提到: 】
: 这跟win,linux没关系吧。就一字符串的比较
VC没有strcasecmp这个函数
【 在 SandFlee 的大作中提到: 】
: ls居然出现了两只黑 色狼
策划换头像...
【 在 cl233 的大作中提到: 】
: 额,在vs2005下面编译出现:error LNK2019: 无法解析的外部符号 strcasecmp这个问题。。这个大家怎么看?
当然,VC里就没这个函数,请使用strcmp或是_stricmp