summaryrefslogblamecommitdiff
path: root/src/ctype/isdigit.c
blob: 16beddb4ca6a9ac7c1e2f47524cfe6c095d2485e (plain) (tree)
1
2
3
4
5
6
7






                                    






                                   
#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);