From 07530dd08e0b29573712b54543a7fc42672bb34b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Dec 2019 17:59:22 +0100 Subject: Added very basic command support --- src/userspace/mlibc/string/memset.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/userspace/mlibc/string/memset.c (limited to 'src/userspace/mlibc/string/memset.c') diff --git a/src/userspace/mlibc/string/memset.c b/src/userspace/mlibc/string/memset.c new file mode 100644 index 0000000..fb5ab80 --- /dev/null +++ b/src/userspace/mlibc/string/memset.c @@ -0,0 +1,8 @@ +#include + +void *memset(void *dest, char val, size_t count) +{ + char *temp = (char *) dest; + for (; count != 0; count--) *temp++ = val; + return dest; +} \ No newline at end of file -- cgit v1.2.3