memory based library - only doing what i need for now

This commit is contained in:
Medium Fries 2019-02-25 16:01:27 -08:00
parent ef3374fd8d
commit 72f711a421
2 changed files with 19 additions and 0 deletions

14
stl/mem.c Normal file
View File

@ -0,0 +1,14 @@
void memset(void* target, const unsigned ssize, const unsigned bsize) {
for(unsigned i=0;i<bsize;i++) {
}
}
int memcmp(const void* left, const void* right, const size_t size) {
for(unsigned i =0;i<size;i++) {
if(left[i] != right[i]) {
return 1;
}
}
return 0;
}

5
stl/mem.h Normal file
View File

@ -0,0 +1,5 @@
/* Returns 0: if both memory buffers are the same
* Return !0: if the memory buffers are not the same
*
*/
int memcmp(const void* left, const void* right, const size_t size);