 | CARM User's Guide Discontinued |  |
|
|
| isalnum| Summary | | | Description | The isalnum function tests c to determine if it is an alphanumeric character ('A'-'Z', 'a'-'z', or '0'-'9'). | | Return Value | The isalnum function returns a value of 1 if c is an alphanumeric character or a value of 0 if it is not. | | See Also | isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit | | Example |
#include <ctype.h>
#include <stdio.h> /* for printf */
void tst_isalnum (void) {
unsigned char i;
char *p;
for (i = 0; i < 128; i++) {
p = (isalnum (i) ? "YES" : "NO");
printf ("isalnum (%c) %s\n", i, p);
}
}
|
|
|