diff options
Diffstat (limited to 'libc-top-half/musl/src/ctype/iswxdigit.c')
-rw-r--r-- | libc-top-half/musl/src/ctype/iswxdigit.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ctype/iswxdigit.c b/libc-top-half/musl/src/ctype/iswxdigit.c new file mode 100644 index 0000000..62bc9e7 --- /dev/null +++ b/libc-top-half/musl/src/ctype/iswxdigit.c @@ -0,0 +1,13 @@ +#include <wctype.h> + +int iswxdigit(wint_t wc) +{ + return (unsigned)(wc-'0') < 10 || (unsigned)((wc|32)-'a') < 6; +} + +int __iswxdigit_l(wint_t c, locale_t l) +{ + return iswxdigit(c); +} + +weak_alias(__iswxdigit_l, iswxdigit_l); |