ICHAR(C)

Purpose

Returns the position of a character in the collating sequence associated with the kind type parameter of the character.

Class

Elemental function

Argument type and attributes

C
must be of type character and of length one. Its value must be that of a representable character.

Result type and attributes

Default integer.

Result value

Examples

ICHAR ('X') has the value 88 in the ASCII collating sequence.

Specific Name Argument Type Result Type Pass As Arg?
ICHAR default character default integer yes  1 
Notes:
  1. The extension is the ability to pass the name as an argument.
  2. XL Fortran supports only the ASCII collating sequence.