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