论坛元老
 
- 积分
- 3567
- 金钱
- 3567
- 注册时间
- 2016-1-8
- 在线时间
- 544 小时
|

楼主 |
发表于 2018-1-25 10:00:17
|
显示全部楼层
[mw_shl_code=applescript,true]/* - STRCMP.C -
The ANSI "strcmp" function.
$Revision: 38615 $
Copyright 1986 - 1999 IAR Systems. All rights reserved.
*/
#include "string.h"
int strcmp(const char *s1, const char *s2)
{
#ifdef _INTRINSIC
return strcmp(s1, s2);
#else
while (*s1 == *s2)
{
if (!*s1++)
{
return 0;
}
s2++;
}
return *(unsigned char *)s1 - *(unsigned char *)s2;
#endif
}
[/mw_shl_code] |
|