next up previous 252
Next: CNF_CVAL - Convert a Fortran INTEGER into the same type as used in the TRAIL macro.
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: CNF_CVAL - Convert a Fortran INTEGER into the same type as used in the TRAIL macro.
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
P.W. Draper
18 April 2008
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council