iachar(3f) - [FORTRAN:INTRINSIC:CHARACTER] Code in ASCII collating sequence
Syntax
Description
Arguments
Return Value
Example
Note
Standard
Class
See Also
result = iachar(c [, kind])
iachar(c) returns the code for the ASCII character in the first character position of C.
C - Shall be a scalar CHARACTER, with intent(in) KIND - (Optional) An INTEGER initialization expression indicating the kind parameter of the result.
The return value is of type INTEGER and of kind KIND. If KIND is absent, the return value is of default integer kind.
Sample program:
program demo_iachar integer i i = iachar( ) end program demo_iachar
See [[ichar]] for a discussion of converting between numerical values and formatted string representations.
[[Fortran 95]] and later, with KIND argument [[Fortran 2003]] and later
[[Elemental procedure|Elemental function]]
[[achar]], [[char]], [[ichar]]
Functions that perform operations on character strings, return lengths of arguments, and search for certain arguments:
Elemental: ADJUSTL, ADJUSTR, INDEX, LEN_TRIM, SCAN, VERIFY; Nonelemental: REPEAT, TRIM
iachar (3) | March 18, 2019 |