C Run-Time Library Reference
isdigit
detect decimal digit
Synopsis
#include <ctype.h>
int isdigit(int c);
Description
The
function determines if the input character is a decimal digit
isdigit
(
). If the input is not a digit,
0-9
digit,
isdigit
Error Conditions
The
function does not return an error condition.
isdigit
Example
#include <ctype.h>
int ch;
for (ch=0; ch<=0x7f; ch++) {
printf("%#04x", ch);
printf("%2s", isdigit(ch) ? "digit" : "");
putchar('\n');
}
See Also
isalpha, isalnum,
3-74
isdigit
returns a non-zero value.
isxdigit
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
returns a zero. If the input is a
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers