add all missing wchar functions except floating point parsers
[musl] / src / string / wcpncpy.c
diff --git a/src/string/wcpncpy.c b/src/string/wcpncpy.c
new file mode 100644 (file)
index 0000000..aef8096
--- /dev/null
@@ -0,0 +1,6 @@
+#include <wchar.h>
+
+wchar_t *wcpncpy(wchar_t *d, const wchar_t *s, size_t n)
+{
+       return wcsncpy(d, s, n) + wcsnlen(s, n);
+}