summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/string/wmemset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/string/wmemset.c')
-rw-r--r--libc-top-half/musl/src/string/wmemset.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/string/wmemset.c b/libc-top-half/musl/src/string/wmemset.c
new file mode 100644
index 0000000..07a037a
--- /dev/null
+++ b/libc-top-half/musl/src/string/wmemset.c
@@ -0,0 +1,8 @@
+#include <wchar.h>
+
+wchar_t *wmemset(wchar_t *d, wchar_t c, size_t n)
+{
+ wchar_t *ret = d;
+ while (n--) *d++ = c;
+ return ret;
+}