iachar(3I)

IACHAR - Returns the position of a character in the ASCII collating sequence

As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.19.

NAME
     IACHAR - Returns the position of a character in the ASCII collating
     sequence

SYNOPSIS
     IACHAR ([C=]c)

STANDARDS
     Fortran 95

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.