ACHAR(3f)

DESCRIPTION
ACHAR(I) returns the character located at position I in the ASCII collating sequence.

STANDARD
Fortran 77 and later, with KIND argument Fortran 2003 and later

CLASS
Elemental function

SYNTAX
RESULT = ACHAR(I [, KIND])

ARGUMENTS

I The type shall be INTEGER. KIND (Optional) An INTEGER initialization expression indicating the kind parameter of the result.

RETURN VALUE
The return value is of type CHARACTER with a length of one. If the KIND argument is present, the return value is of the specified kind and of the default kind otherwise.

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

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).