diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-29 17:33:43 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-29 17:33:43 -0400 |
commit | fd58540fe28ab420b9d8849473a50a0a76f22350 (patch) | |
tree | 9cd03deed5410a2f08fbdc42273ccd68762a2238 /src/lib/libc/include/string.h | |
parent | 3d104e48e38ac698840461d6a5ed6e532f2c735d (diff) |
libc: string: Add memset()
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 795746c..11da895 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -59,4 +59,15 @@ size_t strnlen(const char *s, size_t maxlen); */ void *memcpy(void *dest, const void *src, size_t n); +/* + * Fill 'n' bytes of memory with 'c' + * + * @s: Memory to fill + * @c: Byte to fill memory with + * @n: Number of bytes to fill + * + * Returns a pointer to 's' + */ +void *memset(void *s, int c, size_t n); + #endif /* _STRING_H */ |