isalnum

Tests for alpha-numerical character

#include <ctype.h>
long isalnum (
        long c
)

Arguments

c Input character

Return Value

A non-zero value is returned if the input character c is alph-numeric, otherwise 0 is returned.

Explanation

The character c is tested as to whether it is alph-numeric character, i.e. a digit or upper or lower case character.

See Also

isalpha(), isascii(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit()