原型
The memcmp() function compares the first n bytes (each interpreted as unsigned char) of the memory areas s1 and s2.
用来比较s1和s2所指的内存区间前n个字符,进行比较操作时,假定两个不等的字节均为无符号字符(unsigned char)
1 | // s1 |
使用参考
1 |
|
The memcmp() function compares the first n bytes (each interpreted as unsigned char) of the memory areas s1 and s2.
用来比较s1和s2所指的内存区间前n个字符,进行比较操作时,假定两个不等的字节均为无符号字符(unsigned char)
1 | // s1 |
1 | #include <string.h> |