From 65ba015d6c1f248d36ad01a653bc49637804b15b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 10 Aug 2025 15:46:33 -0400 Subject: working usermode objdir iteration --- lib/libc-headless/string/memcpy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/libc-headless/string/memcpy.c (limited to 'lib/libc-headless/string/memcpy.c') diff --git a/lib/libc-headless/string/memcpy.c b/lib/libc-headless/string/memcpy.c new file mode 100644 index 0000000..f71444d --- /dev/null +++ b/lib/libc-headless/string/memcpy.c @@ -0,0 +1,10 @@ +#include + +void* +memcpy(void *dest, const void *src, size_t n) +{ + const unsigned char *s = src; + for(unsigned char *d = dest; n; n--) + *(d++) = *(s++); + return dest; +} -- cgit v1.2.1