musl-tcc/src/ctype/isdigit.c

15 lines
185 B
C
Raw Normal View History

2022-03-20 08:48:53 +00:00
#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);