diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-22 20:01:45 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-22 20:01:45 -0500 |
| commit | 6c49129750fc2d8778d30f623b0a1ea22fa79328 (patch) | |
| tree | 086194ac6a4cb6b68885148f9cceae57c317dbf1 /usr/sdk/inc | |
| parent | 0ca11cce7f3660a4b92441c39c30b24866a210c6 (diff) | |
usr: sdk: Add memset() function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk/inc')
| -rw-r--r-- | usr/sdk/inc/sdk/string.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -29,6 +29,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. * * @s1: First string |
