What is is_hex_digit(c) in Fortran?

is_hex_digit(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_hex_digit function checks whether its argument is a digit in base 16 (0…9, A…F, a…f) or not.

is_hex_digit() function

Syntax

public pure function is_hex_digit(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 hexadecimal digit and false otherwise.

Free Resources