aboutsummaryrefslogtreecommitdiffstats
path: root/memory/wcsnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/wcsnlen.c')
-rw-r--r--memory/wcsnlen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/memory/wcsnlen.c b/memory/wcsnlen.c
new file mode 100644
index 0000000..0759419
--- /dev/null
+++ b/memory/wcsnlen.c
@@ -0,0 +1,6 @@
+#include "memory.h"
+
+size_t wcsnlen(wchar_t const *string, size_t max_len)
+{
+ return wmemlchr(string, L'\0', max_len);
+}