isalnum

Tests for an alphanumeric character.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <ctype.h> 
   
  int isalnum (
     int   c);
  

Parameters

c

(IN) Specifies the character to be tested.

Return Values

Returns a nonzero if the argument is an alphabetic character or a digit. Otherwise, it returns 0.

Remarks

The isalnum function tests if c is an alphanumeric character (a to z, A to Z, or 0 to 9). An alphanumeric character is any character for which isalpha or isdigit is true.

See Also