9.142. ICHAR

9.142 ICHAR — Character-to-integer conversion function

Description:

ICHAR(C) returns the code for the character in the first character position of C in the system’s native character set. The correspondence between characters and their codes is not necessarily the same across different GNU Fortran implementations.

Standard:

Fortran 95 and later, with KIND argument Fortran 2003 and later

Class:

Elemental function

Syntax:

RESULT = ICHAR(C [, KIND])

Arguments:
C Shall be a scalar CHARACTER, with INTENT(IN)
KIND (Op