isdigit
isdigit
Defined in header <ctype.h> | ||
---|---|---|
int isdigit( int ch ); |
Checks if the given character is a numeric character (0123456789
).
The behavior is undefined if the value of ch
is not representable as unsigned char
and is not equal to EOF
.
Parameters
ch | - | character to classify |
Return value
Non-zero value if the character is a numeric character, zero otherwise.