C Programming Language |
malloc |
calloc |
memset |
memcpy |
memory |
strcpy |
string |
strtok |
isalnum |
cctype |
errno |
cfenv |
clock |
difftime |
mktime |
ctime |
fprintf |
fscanf |
printf |
scanf |
stdio |
math |
defined in header file ctype.h
int isalnum( int c);
Checks if the given character is alphanumeric
The result is true if contains either alphabet ( lowercase or upper case) or a number, otherwise false.
Parameter Name | Description |
---|---|
c | character to check, which must have value of unsigned char or EOF. |
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main ( int argc, char* argv[])
{
int i;
char str[] = "a";
if(isalnum(str[0]))
{
printf ("its alphanumeric character\n");
}
else
{
printf ("its NOT alphanumeric character\n");
}
return EXIT_SUCCESS;
}
zalloc is a third party library
posted on 2018-12-12 20:46:30 - C Programming Language Tutorials
posted on 2017-12-29 22:52:47 - C Programming Language Tutorials