IACHAR(C, KIND)

Purpose

Returns the position of a character in the ASCII collating sequence.

Class

Elemental function

Argument type and attributes

C
An INTENT(IN) character of length one.
Fortran 2003 begins KIND (optional)
An INTENT(IN) INTEGER scalar. The actual argument corresponding to KIND must be a constant expression.Fortran 2003 ends

Result type and attributes

Result value

Examples

IACHAR ('X') has the value 88.