This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何使用memcmp函数



在程序中使用了memcmp()函数,结果有些怪异,例如memcmp(&PacDCCtrlParam,&PacSysPar.Word.SysParamDCCtrl)     ,sizeof(PacSysPar.Word.SysParamDCCtrl)) ,但是在线检测发现PacDCCtrlParam和PacSysPar.Word.SysParamDCCtrl两个结构体不同时函数仍然输出0,没有输出负值。另外,一致没有找到memcmp的说明,只是在string.h中找到一个声明,这个应该在哪找?