HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 533
Result type/
type parameters
Default integer.
Result value
The result has a value equal to the least integer greater than or equal to A. The result is
undefined if the processor cannot represent this value in the default integer type.
CHAR(I, KIND)
Optional argument
KIND
Description
Returns the character in a given position of the processor collating sequence associated with
the specified kind type parameter. It is the inverse of the function ICHAR.
Class
Elemental function.
Arguments
I must be of type integer with a value in the range 0 <= I <=
n
-1, where
n
is
the number of characters in the collating sequence associated with the
specified kind type parameter.
KIND (optional) must be a scalar integer initialization expression.
Result type/
type parameters
Character of length one. If KIND is present, the kind type parameter is that specified by KIND;
otherwise, the kind type parameter is that of default character type.
Result value
The result is the character in position I of the collating sequence associated with the specified
kind type parameter.