What is is_blank(c) in Fortran?

In Fortran, is_blank(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_blank function checks whether its argument is a blank character or not.

Blank characters include only the space and tab characters.

Syntax

public pure function is_blank(c)

Parameters

  • c is the character to test.

Return value

The function returns a logical value.

It will return true if the character is a blank character and false otherwise.