From 6c49129750fc2d8778d30f623b0a1ea22fa79328 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 22 Dec 2025 20:01:45 -0500 Subject: usr: sdk: Add memset() function Signed-off-by: Ian Moffett --- usr/sdk/inc/sdk/string.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'usr/sdk/inc') diff --git a/usr/sdk/inc/sdk/string.h b/usr/sdk/inc/sdk/string.h index 9e648d9..7233c50 100644 --- a/usr/sdk/inc/sdk/string.h +++ b/usr/sdk/inc/sdk/string.h @@ -28,6 +28,17 @@ USIZE strlen(const char *str); */ void *memcpy(void *dest, const void *src, USIZE count); +/* + * Fill a memory area with a number of bytes + * + * @s: Target memory area + * @c: Bytes to fill with + * @n: Number of bytes + * + * Returns 's' on success + */ +void *memset(void *s, int c, USIZE n); + /* * Compare two strings to see if they are equal. * -- cgit v1.2.3