Hi,
According to documentation, isdigit returns a non-zero value is the value passed to it is a decimal integer, 0 otherwise. BUt when i tested it in a simple program it does the opposite. Any ideas?
Code:#include <stdio.h> #include <ctype.h> int main() { int c = 33; if ( isdigit( c ) == 0 ) printf( "not an integer\n" ); system("PAUSE"); return 0; }