Elemental Intrinsic Function (Generic): Returns the character in a specified position of the ASCII character set, even if the processor's default character set is different. It is the inverse of the IACHAR function. In Intel® Fortran, ACHAR is equivalent to the CHAR function.
Syntax
Results
The result type is character with length 1; it has the kind parameter value of KIND ('A').
If I has a value within the range 0 to 127, the result is the character in position I of the ASCII character set. ACHAR (IACHAR(C)) has the value C for any character C capable of representation in the processor. For a complete list of ASCII character codes, see Character and Key Code Charts.
See Also
Examples
ACHAR (71) has the value 'G'
.
ACHAR (63) has the value '?'
.