diff options
Diffstat (limited to 'src/ctype/isxdigit.c')
-rw-r--r-- | src/ctype/isxdigit.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ctype/isxdigit.c b/src/ctype/isxdigit.c new file mode 100644 index 0000000..aab1a74 --- /dev/null +++ b/src/ctype/isxdigit.c @@ -0,0 +1,13 @@ +#include <ctype.h> + +int isxdigit(int c) +{ + return isdigit(c) || ((unsigned)c|32)-'a' < 6; +} + +int __isxdigit_l(int c, locale_t l) +{ + return isxdigit(c); +} + +weak_alias(__isxdigit_l, isxdigit_l); |