IACHAR(3f)

DESCRIPTION
IACHAR(C) returns the code for the ASCII character in the first character position of C.

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

CLASS
Elemental function

SYNTAX
RESULT = IACHAR(C [, KIND])

ARGUMENTS

C Shall be a scalar CHARACTER, with INTENT(IN) KIND (Optional) An INTEGER initialization expression indicating the kind parameter of the result.

RETURN VALUE
The return value is of type INTEGER and of kind KIND. If KIND is absent, the return value is of default integer kind.

EXAMPLE
          program test_iachar
            integer i
            i = iachar(' ')
          end program test_iachar

NOTE
See ICHAR for a discussion of converting between numerical values and formatted string representations.

SEE ALSO
ACHAR, CHAR, 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).