size-optimize sh/fdpic dynamic entry point
[musl] / src / multibyte / wctob.c
1 #include <wchar.h>
2 #include <stdlib.h>
3 #include "internal.h"
4
5 int wctob(wint_t c)
6 {
7         if (c < 128U) return c;
8         if (MB_CUR_MAX==1 && IS_CODEUNIT(c)) return (unsigned char)c;
9         return EOF;
10 }