next up previous 252
Next: References
Up: CNF FORTRAN Function Description
Previous: CNF FORTRAN Function Description


CNF_PVAL - Expand a FORTRAN pointer to its full value

Description:
Given a FORTRAN pointer, stored in an INTEGER variable, this function returns the full value of the pointer (on some platforms, this may be longer than an INTEGER). Typically, this is only required when the pointer is used to pass dynamically allocated memory to another routine using the %VAL facility.

Invocation:
CALL DOIT( ..., %VAL( CNF_PVAL( FPTR ) ), ... )

Arguments:

FPTR = INTEGER (Given)
The FORTRAN pointer value.

Returned Value:

CNF_PVAL
The full pointer value.

Notes:



next up previous 252
Next: References
Up: CNF FORTRAN Function Description
Previous: CNF FORTRAN Function Description

CNF and F77 Mixed Language Programming -- FORTRAN and C
Starlink User Note 209
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
19 January 2000
E-mail:ussc@star.rl.ac.uk