memcmp added to stdlib module
This commit is contained in:
parent
3a5da9ce96
commit
0e697a27ae
8
stl/stdlib.c
Normal file
8
stl/stdlib.c
Normal file
@ -0,0 +1,8 @@
|
||||
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;
|
||||
}
|
1
stl/stdlib.h
Normal file
1
stl/stdlib.h
Normal file
@ -0,0 +1 @@
|
||||
int memcmp(const void* left, const void* right, const unsigned length);
|
Loading…
Reference in New Issue
Block a user