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