IACHAR(3I) Last changed: 1-6-98
NAMEIACHAR - Returns the position of a character in the ASCII collating
sequence
SYNOPSISIACHAR ([C=]c)
IMPLEMENTATION
UNICOS, UNICOS/mk, and IRIX systems
STANDARDS
Fortran 90
DESCRIPTION
The IACHAR intrinsic function returns the position of a character in
the ASCII collating sequence. It accepts the following argument:
c Must be of type character and of length 1
IACHAR is an elemental function. The name of this intrinsic cannot be
passed as an argument.
RETURN VALUES
The result type is a default integer value. If c is in the collating
sequence defined by the codes specified in ISO 646:1983 (International
Reference Version), the result is the position of c in that sequence
and satisfies the inequality (0 <= IACHAR (c) <= 127). The results
are consistent with the LGE, LGT, LLE, and LLT lexical comparison
functions. For example, if LLE(C,D) is true, IACHAR(C).LE.IACHAR(D)
is true when C and D are any two ASCII characters.
EXAMPLES
IACHAR('X') has the value 88.
SEE ALSO
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.