Next: , Previous: HUGE, Up: Intrinsic Procedures


8.67 IACHAR — Code in ASCII collating sequence

Description:
IACHAR(C) returns the code for the ASCII character in the first character position of C.
Option:
f95, gnu
Class:
elemental function
Syntax:
I = IACHAR(C)
Arguments:

C Shall be a scalar CHARACTER, with INTENT(IN)

Return value:
The return value is of type INTEGER and of the default integer kind.
Example:
          program test_iachar
            integer i
            i = iachar(' ')
          end program test_iachar