From c92305221770bb1316d026c200d569ca4e930e42 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 28 Aug 2025 16:20:17 -0400 Subject: merge libc files, new init methods for libjove --- lib/libc/string/memcpy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/libc/string/memcpy.c (limited to 'lib/libc/string/memcpy.c') diff --git a/lib/libc/string/memcpy.c b/lib/libc/string/memcpy.c new file mode 100644 index 0000000..f71444d --- /dev/null +++ b/lib/libc/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