diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-29 17:29:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-29 17:29:25 -0400 |
commit | 3d104e48e38ac698840461d6a5ed6e532f2c735d (patch) | |
tree | f604d9c93749ecec9e7133b3eec1c565fdc5b8ef /src/lib/libc/include/string.h | |
parent | 1682610e2c7af195b1667718fc96ea6ac6f2bd5d (diff) |
libc: string: Add memcpy()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/include/string.h')
-rw-r--r-- | src/lib/libc/include/string.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |