Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

C_FUNLOC

Intrinsic Module Inquiry function (Generic): Returns the C address of a function pointer.

Module

USE, INTRINSIC :: ISO_C_BINDING

Syntax

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.

Results

The result is a scalar of derived type C_FUNPTR. The result value represents the C address of the argument.