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

+-------------------------------IBM Extension--------------------------------+

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.

+----------------------------End of IBM Extension----------------------------+

IBM Copyright 2003