diff options
Diffstat (limited to 'lib/libc/ctype/isxdigit.c')
| -rw-r--r-- | lib/libc/ctype/isxdigit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/ctype/isxdigit.c b/lib/libc/ctype/isxdigit.c new file mode 100644 index 00000000..588df77a --- /dev/null +++ b/lib/libc/ctype/isxdigit.c @@ -0,0 +1,6 @@ +#include <ctype.h> + +int isxdigit(int c) +{ + return isdigit(c) || ((unsigned)c | 32) - 'a' < 6; +} |
