From fd58540fe28ab420b9d8849473a50a0a76f22350 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 29 Sep 2025 17:33:43 -0400 Subject: libc: string: Add memset() Signed-off-by: Ian Moffett --- src/lib/libc/include/string.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/libc/include/string.h') 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 */ -- cgit v1.2.3