From 3d104e48e38ac698840461d6a5ed6e532f2c735d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 29 Sep 2025 17:29:25 -0400 Subject: libc: string: Add memcpy() Signed-off-by: Ian Moffett --- src/lib/libc/include/string.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/libc/include/string.h') diff --git a/src/lib/libc/include/string.h b/src/lib/libc/include/string.h index 58a7caa..795746c 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -48,4 +48,15 @@ size_t strlen(const char *s); */ size_t strnlen(const char *s, size_t maxlen); +/* + * Copy variable amount of bytes from 'src' to 'dest' + * + * @dest: Copy destination + * @src: Copy source + * @n: Number of bytes to copy + * + * Returns 'dest' on success + */ +void *memcpy(void *dest, const void *src, size_t n); + #endif /* _STRING_H */ -- cgit v1.2.3