直接上例子:
int main(){ unsigned char st[]={0x11,0x12}; int ret = memcmp(st,"\x11\x12",1); printf("ret = %d\n",ret); return 0;}
本文共 181 字,大约阅读时间需要 1 分钟。
直接上例子:
int main(){ unsigned char st[]={0x11,0x12}; int ret = memcmp(st,"\x11\x12",1); printf("ret = %d\n",ret); return 0;}
转载于:https://my.oschina.net/crooner/blog/221969