Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <ctype.h> int isalnum(int c);
| ||
Return val. |
0 | c is alphanumeric. c is not alphanumeric. | |
Note |
| ||
Example | #include <ctype.h>
#include <stdio.h>
int main(void)
{
int c;
while((c = getchar()) != EOF)
printf("%s : %c\n", ((isalnum(c)) ? "Alphanumeric" : "Other"), c);
return 0;
}
| ||
See also | isalpha, isascii, iscntrl, isdigit, isgraph, islower, ispunct, isprint, isspace, isupper, isxdigit, | ||