Next: , Previous: ACCESS, Up: Intrinsic Procedures


6.5 ACHAR — Character in ASCII collating sequence

Description:
ACHAR(I) returns the character located at position I in the ASCII collating sequence.
Standard:
F77 and later
Class:
Elemental function
Syntax:
RESULT = ACHAR(I)
Arguments:

I The type shall be INTEGER(*).

Return value:
The return value is of type CHARACTER with a length of one. The kind type parameter is the same as KIND('A').
Example:
          program test_achar
            character c
            c = achar(32)
          end program test_achar
     

Note:
See ICHAR for a discussion of converting between numerical values and formatted string representations.
See also:
CHAR, IACHAR, ICHAR