summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/isxdigit.c
blob: 9034619001d2e89e9059d5deed607b521711bbf1 (plain)
1
2
3
4
5
6
#include <ctype.h> // for isdigit, isxdigit

int isxdigit(int c)
{
	return isdigit(c) || ((unsigned)c | 32) - 'a' < 6;
}