aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar/wcslen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wcslen.c')
-rw-r--r--src/wchar/wcslen.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/wchar/wcslen.c b/src/wchar/wcslen.c
index b4a07c6..5c0be9f 100644
--- a/src/wchar/wcslen.c
+++ b/src/wchar/wcslen.c
@@ -33,19 +33,3 @@ size_t wcslen(const wchar_t* str)
return (size_t)(s - 1 - str);
}
-
-/**
- * `wchar_t` version of `strnlen`.
- *
- * @param str The string.
- * @param maxlen The number of bytes to inspect, at most.
- * @return The number of `wchar_t`:s before the
- * first NUL character. `maxlen` if no
- * NUL character was found.
- */
-size_t wcsnlen(const wchar_t* str, size_t maxlen)
-{
- const wchar_t* end = wmemchr(str, 0, maxlen);
- return end == NULL ? maxlen : (size_t)(end - str);
-}
-