summaryrefslogtreecommitdiff
path: root/src/multibyte/mblen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte/mblen.c')
-rw-r--r--src/multibyte/mblen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/multibyte/mblen.c b/src/multibyte/mblen.c
new file mode 100644
index 0000000..a4304bf
--- /dev/null
+++ b/src/multibyte/mblen.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+int mblen(const char *s, size_t n)
+{
+ return mbtowc(0, s, n);
+}