aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/multibyte/wctob.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/multibyte/wctob.c')
-rw-r--r--system/lib/libc/musl/src/multibyte/wctob.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/multibyte/wctob.c b/system/lib/libc/musl/src/multibyte/wctob.c
new file mode 100644
index 00000000..d6353ee1
--- /dev/null
+++ b/system/lib/libc/musl/src/multibyte/wctob.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include <wchar.h>
+
+int wctob(wint_t c)
+{
+ if (c < 128U) return c;
+ return EOF;
+}