musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/wmemset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wmemset.c')
-rw-r--r--src/string/wmemset.c 9
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;
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月18日 07:00:21 +0000

AltStyle によって変換されたページ (->オリジナル) /