Next: , Previous: HUGE, Up: Intrinsic Procedures


6.92 IACHAR — Code in ASCII collating sequence

Description:
IACHAR(C) returns the code for the ASCII character in the first character position of C.
Standard:
F95 and later
Class:
Elemental function
Syntax:
RESULT = 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
     

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