Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-C57F68D8-FAE8-40DD-8673-CA5160A75D1F
Visible to Intel only — GUID: GUID-C57F68D8-FAE8-40DD-8673-CA5160A75D1F
C_FUNLOC
Intrinsic Module Inquiry function (Generic): Returns the C address of a function pointer.
USE, INTRINSIC :: ISO_C_BINDING
result = C_FUNLOC(x)
x |
(Input) Is a procedure or a Fortran pointer of type INTEGER associated with a procedure. If x is a procedure pointer, it must be associated. x cannot be a coindexed object. If C_FUNLOC is called from a PURE procedure, x must be PURE. |
The result is a scalar of derived type C_FUNPTR. The result value represents the C address of the argument.