From 65ba015d6c1f248d36ad01a653bc49637804b15b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 10 Aug 2025 15:46:33 -0400 Subject: working usermode objdir iteration --- lib/libc-headless/string/memset.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/libc-headless/string/memset.c (limited to 'lib/libc-headless/string/memset.c') diff --git a/lib/libc-headless/string/memset.c b/lib/libc-headless/string/memset.c new file mode 100644 index 0000000..f79a4b4 --- /dev/null +++ b/lib/libc-headless/string/memset.c @@ -0,0 +1,7 @@ +#include + +void +memset(void *s, int c, size_t n) +{ + for(unsigned char *sb = s; n; n--) *(sb++) = c; +} -- cgit v1.2.1