?? memcmp.c
字號:
#include <string.h>
int memcmp(void *s1, void *s2, size_t n)
{
unsigned char *cs1 = s1, *cs2 = s2;
while (n-- && *cs1 == *cs2)
{
cs1++;
cs2++;
}
if ((n+1) == 0 || *cs1 == *cs2)
return 0;
if (*cs1 < *cs2)
return -1;
return 1;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -