Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
isdigit.c
Go to the documentation of this file.
1 // Pulled from musl libc, locale support removed
2 
3 #include <ctype.h>
4 
5 int isdigit(int c)
6 {
7  return (unsigned)c - '0' < 10;
8 }
int isdigit(int c)
Checks if the given character is a numeric character.
Definition: isdigit.c:5