摘要: eg: #include <stdio.h> #include <string.h> int main(void) { char string[7] = "ABCDEFG"; char copy[4] = "ABCD"; int ret; ret = memcmp(string,copy,7); p 阅读全文