What is is_alpha(c) in Fortran?

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

The is_alpha function checks whether its argument is an ASCII letter (A…Z, a…z) character or not.

is_alpha() function

Syntax

public pure function is_alpha(c)

Parameters

  • c is the character to test.

Return value

The function returns a logical value.

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

Free Resources