What is is_white(c) in Fortran?

is_white(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_white function checks whether its argument is a whitespace character or not.

Whitespace characters include space, tab, vertical tab, form feed, carriage return, and linefeed characters.

Syntax

public pure function is_white(c)

Parameters

  • c is the character to test.

Return value

The function returns a logical value. It returns true if the character is a whitespace character and false otherwise.

Free Resources