|
语法:
#include int isalnum( int ch );
功能:如果参数是数字或字母字符,函数返回非零值,否则返回零值。 char c; scanf( "%c", &c ); if( isalnum(c) ) printf( "You entered the alphanumeric character %c\n", c );
相关主题: isalpha(), iscntrl(), isdigit(), isgraph(), isprint(), ispunct(), and isspace(). |