aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/isdigit.c
blob: 2983d7261bab309f34b1d9181e48de42a53aecdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ctype.h>
#undef isdigit

int isdigit(int c)
{
	return (unsigned)c-'0' < 10;
}

int __isdigit_l(int c, locale_t l)
{
	return isdigit(c);
}

weak_alias(__isdigit_l, isdigit_l);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif