aboutsummaryrefslogtreecommitdiffstats
path: root/memory/wcsncat.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/wcsncat.c')
-rw-r--r--memory/wcsncat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/memory/wcsncat.c b/memory/wcsncat.c
new file mode 100644
index 0000000..e979253
--- /dev/null
+++ b/memory/wcsncat.c
@@ -0,0 +1,9 @@
+#include "memory.h"
+
+wchar_t *wcsncat(wchar_t *restrict destination, wchar_t const *restrict source,
+ size_t max_len)
+{
+ wmemcpy(destination + wcslen(destination), source,
+ wcsnlen(destination, max_len));
+ return destination;
+}