summaryrefslogtreecommitdiff
path: root/src/string/wmemset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wmemset.c')
-rw-r--r--src/string/wmemset.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/string/wmemset.c b/src/string/wmemset.c
new file mode 100644
index 00000000..1a2a8618
--- /dev/null
+++ b/src/string/wmemset.c
@@ -0,0 +1,9 @@
+#include <string.h>
+#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;
+}