From 6132e1e97271fb915184803dec701fd39ef7bb10 Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Sun, 21 Apr 2024 14:05:38 -0400 Subject: libc: Add close() and stdio functions Signed-off-by: Kaimakan71 Signed-off-by: Ian Moffett --- lib/libc/src/string/memcpy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libc/src/string/memcpy.c') diff --git a/lib/libc/src/string/memcpy.c b/lib/libc/src/string/memcpy.c index 9851e07..efbf1bb 100644 --- a/lib/libc/src/string/memcpy.c +++ b/lib/libc/src/string/memcpy.c @@ -32,9 +32,8 @@ void * memcpy(void *dest, const void *src, size_t n) { - for (size_t i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) ((char *)dest)[i] = ((char *)src)[i]; - } return dest; } -- cgit v1.2.3