MemCom Reference Manual > MemCom (Old) Fortran77 API > Utility Functions > mcloc

Name

mclocf, mclocd — Inquire address of variable

Synopsis

integer*4 function mclocf(var)

integer*4 function mclocd(var1,var2)

Description

mclocf returns the byte address of a variable in memory. mclocf is a MemCom 6 compatibility function.

mclocd computes the byte address distance between 2 variables var1 and var2, i.e it calculates address(var1) - address(var2).

[Warning]Warning

These functions are MemCom 6 compatibility functions and can fail on 64 bit platforms. Make use of the Fortran intrinsic function %ref(var) instead.

Parameters

var

Variable whose address will be returned (input).

var1, var2

Variable whose pointer distance will be returned (input).