summaryrefslogtreecommitdiff
path: root/src/ctype/iswxdigit.c
blob: 62bc9e743953bfc532ca42ef96e5ab9431b4c3c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <wctype.h>

int iswxdigit(wint_t wc)
{
	return (unsigned)(wc-'0') < 10 || (unsigned)((wc|32)-'a') < 6;
}

int __iswxdigit_l(wint_t c, locale_t l)
{
	return iswxdigit(c);
}

weak_alias(__iswxdigit_l, iswxdigit_l);