What is is_alphanum(c) in Fortran?

is_alphanum(c) is a public pure function in the stdlib_ascii module. The stdlib_ascii module provides methods to manipulate and handle intrinsic character variables and constants.

The is_alphanum function checks whether its argument is a letter (a…z, A…Z) or a number (0…9).

Syntax

public pure function is_alphanum(c)

Function parameter(s)

c is the character to test.

Return value

This function returns a logical value.

It will return true if the character is an alphanumeric character and false otherwise.

Free Resources