From 3d2a2a58c11fa6b7653a0f77de9aa1f7cdb1921a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 21 Dec 2025 19:10:19 -0500 Subject: usr: sdk: Add memcpy() function Signed-off-by: Ian Moffett --- usr/sdk/inc/sdk/string.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'usr/sdk/inc') diff --git a/usr/sdk/inc/sdk/string.h b/usr/sdk/inc/sdk/string.h index f7668fd..36261d0 100644 --- a/usr/sdk/inc/sdk/string.h +++ b/usr/sdk/inc/sdk/string.h @@ -15,4 +15,16 @@ */ USIZE strlen(const char *str); +/* + * Copy a variable number of bytes from one memory location + * to another. + * + * @dest: Destination buffer + * @src: Source buffer + * @count: Byte count + * + * Returns the base of `dest' on success + */ +void *memcpy(void *dest, const void *src, USIZE count); + #endif /* !_SDK_STRING_H_ */ -- cgit v1.2.3