C语言中如何判断两个数组内容是否相同?

如题所述

第1个回答  2019-04-24
C语言有个函数
memcmp
是用来进行内存比较的
extern
int
memcmp(void
*buf1,
void
*buf2,
unsigned
int
count);
if(0==memcmp(ID,ID1,20))
//ID1等于ID2
{
}
相似回答
大家正在搜