9 lines
168 B
C
9 lines
168 B
C
int memcmp(const void* left, const void* right, const unsigned length) {
|
|
for(unsigned i=0;i<length;i++) {
|
|
if(left[i] != right[i]) {
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|