Namespaces
Variants
Actions

isalnum

From cppreference.com
< c‎ | string‎ | byte
Defined in header <ctype.h>
int isalnum( int ch );

Checks if the given character is an alphanumeric character as classified by the current C locale. In the default locale, the following characters are alphanumeric:

  • Digits (0123456789),
  • Uppercase letters (ABCDEFGHIJKLMNOPQRSTUVWXYZ),
  • Lowercase letters (abcdefghijklmnopqrstuvwxyz).

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Contents

[edit] Parameters

ch - character to classify

[edit] Return value

Non-zero value if the character is an alphanumeric character, 0 otherwise.

[