该函数实现内存的比较
void* memcmp(const void* buf1, const void* buf2, size_t count){assert(buf1 != NULL && buf2 != NULL);const char* pbuf1 = (const char*)buf1;const char* pbuf2 = (const char*)buf2;int re=0;while (count-- > 0){if ((re = *pbuf1 - *pbuf2) != 0)break;pbuf1++;pbuf2++;}return re;}int main(){int a[] = { 1,2,3,4,5 };int b[] = { 1,2,4,3,5,6 };int re=memcmp(b, a, sizeof(int) * 5);printf("%d", re);}*/