diff options
Diffstat (limited to 'src/ctype/isdigit.c')
-rw-r--r-- | src/ctype/isdigit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ctype/isdigit.c b/src/ctype/isdigit.c new file mode 100644 index 00000000..0bc82a6d --- /dev/null +++ b/src/ctype/isdigit.c @@ -0,0 +1,7 @@ +#include <ctype.h> +#undef isdigit + +int isdigit(int c) +{ + return (unsigned)c-'0' < 10; +} |