Next: LOG, Previous: LNBLNK, Up: Intrinsic Procedures [Contents][Index]
LOC
— Returns the address of a variableLOC(X)
returns the address of X as an integer.
GNU extension
Inquiry function
RESULT = LOC(X)
X | Variable of any type. |
The return value is of type INTEGER
, with a KIND
corresponding to the size (in bytes) of a memory address on the target
machine.
program test_loc integer :: i real :: r i = loc(r) print *, i end program test_loc