summaryrefslogtreecommitdiff
path: root/usr/sdk/inc
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-12-21 19:10:19 -0500
committerIan Moffett <ian@osmora.org>2025-12-21 19:10:19 -0500
commit3d2a2a58c11fa6b7653a0f77de9aa1f7cdb1921a (patch)
tree73be80da6920ff5d354e6d620aa09d28d2a88945 /usr/sdk/inc
parent085f9b4de880efef92ae5a678c16fa8f05c8a579 (diff)
usr: sdk: Add memcpy() function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk/inc')
-rw-r--r--usr/sdk/inc/sdk/string.h12
1 files changed, 12 insertions, 0 deletions
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_ */