9.3.71 INT_PTR_KIND ( )

Description:  Returns the INTEGER KIND that will hold an address. This is a specific function that has no generic function associated with it. It must not be passed as an actual argument.  
Class:  Inquiry function; Specific 
Arguments:  None. 
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 host platform.

On Windows systems, the value is 4. On OpenVMS, Tru64 UNIX, and Linux systems, the value is 8.
 

Examples

Consider the following:

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


Previous Page Next Page Table of Contents