IACHAR — Code in ASCII collating sequenceIACHAR(C) returns the code for the ASCII character
in the first character position of C.
RESULT = IACHAR(C [, KIND])
| C | Shall be a scalar CHARACTER, with INTENT(IN)
|
| KIND | (Optional) An INTEGER initialization
expression indicating the kind parameter of the result.
|
INTEGER and of kind KIND. If
KIND is absent, the return value is of default integer kind.
program test_iachar
integer i
i = iachar(' ')
end program test_iachar