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