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

#undef iswdigit

int iswdigit(wint_t wc)
{
	return (unsigned)wc-'0' < 10;
}

int __iswdigit_l(wint_t c, locale_t l)
{
	return iswdigit(c);
}

weak_alias(__iswdigit_l, iswdigit_l);