reimplmenets the previous iteration with a brand new custom build system
This commit is contained in:
8
libc/string/memset.c
Normal file
8
libc/string/memset.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <string.h>
|
||||
|
||||
void* memset(void* bufptr, int value, size_t size) {
|
||||
unsigned char* buf = (unsigned char*) bufptr;
|
||||
for (size_t i = 0; i < size; i++)
|
||||
buf[i] = (unsigned char) value;
|
||||
return bufptr;
|
||||
}
|
Reference in New Issue
Block a user