diff options
Diffstat (limited to 'src/ctype/iswxdigit.c')
-rw-r--r-- | src/ctype/iswxdigit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ctype/iswxdigit.c b/src/ctype/iswxdigit.c new file mode 100644 index 0000000..229a469 --- /dev/null +++ b/src/ctype/iswxdigit.c @@ -0,0 +1,7 @@ +#include <wchar.h> +#include <wctype.h> + +int iswxdigit(wint_t wc) +{ + return (unsigned)(wc-'0') < 10 || (unsigned)((wc|32)-'a') < 6; +} |