XL Fortran for AIX 8.1

Language Reference


CHAR(I, KIND)

Returns the character in the given position of the collating sequence associated with the specified kind type parameter. It is the inverse of the function ICHAR.

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

I
must be of type integer with a value in the range 0 <= I <= 127.

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

KIND (optional)
must be a scalar integer initialization expression.

Class

Elemental function

Result Type and Attributes

Result Value

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

Examples

CHAR (88) has the value 'X'.

Specific Name Argument Type Result Type Pass As Arg?
CHAR any integer default character yes (1)

Notes:

  1. IBM Extension: the ability to specify a nondefault integer argument.

  2. XL Fortran supports only the ASCII collating sequence.

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]