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

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

INT_PTR_KIND

Inquiry Intrinsic Function (Specific): Returns the INTEGER KIND that will hold an address. This is a specific function that has no generic function associated with it. It cannot be passed as an actual argument.

result = INT_PTR_KIND( )

Results

The result type is default integer. The result is a scalar with the value equal to the value of the kind parameter of the integer data type that can represent an address on the targeted platform.

The result value is 4 on IA-32 target architecture; 8 on Intel® 64 architecture.

Example

   REAL A(100)
   POINTER (P, A)
   INTEGER (KIND=INT_PTR_KIND()) SAVE_P
   P = MALLOC (400)
   SAVE_P = P