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