原型: int memcmp(const void *buf1, const void *buf2, unsigned int count);
#include<string.h>
比较内存区域buf1和buf2的前count个字节。此函数是按字节比较。
Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2, returning zero if they all match or a value different from zero representing which is greater if they do not。
Notice that, unlike strcmp, the function does not stop comparing after finding a null character.
【FROM MSDN && 百科】原型: int memcmp(const void *buf1, const void *buf2, unsigned int count);#include比较内存区域buf1和buf2的前count个字节。此函数是按字节比较。Compares the first num bytes of the block of memo