diff options
Diffstat (limited to 'libc-top-half/musl/src/ctype/iswcntrl.c')
-rw-r--r-- | libc-top-half/musl/src/ctype/iswcntrl.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ctype/iswcntrl.c b/libc-top-half/musl/src/ctype/iswcntrl.c new file mode 100644 index 0000000..feccfcd --- /dev/null +++ b/libc-top-half/musl/src/ctype/iswcntrl.c @@ -0,0 +1,16 @@ +#include <wctype.h> + +int iswcntrl(wint_t wc) +{ + return (unsigned)wc < 32 + || (unsigned)(wc-0x7f) < 33 + || (unsigned)(wc-0x2028) < 2 + || (unsigned)(wc-0xfff9) < 3; +} + +int __iswcntrl_l(wint_t c, locale_t l) +{ + return iswcntrl(c); +} + +weak_alias(__iswcntrl_l, iswcntrl_l); |