diff options
Diffstat (limited to 'src/ctype/isdigit.c')
-rw-r--r-- | src/ctype/isdigit.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ctype/isdigit.c b/src/ctype/isdigit.c new file mode 100644 index 0000000..16beddb --- /dev/null +++ b/src/ctype/isdigit.c @@ -0,0 +1,14 @@ +#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); |