next up previous 252
Next: F77_CREATE_type_ARRAY - Create an array of type.
Up: Full Description of F77 Macros
Previous: DECLARE_type_ARRAY_DYN - Declare a dynamic type array


F77_ASSOC_type_ARRAY - Associate a FORTRAN array with a C array.

Description:
For types which do not require separate memory allocated to hold the FORTRAN array, this macro ensures that the pointer to the FORTRAN array points to the memory allocated for the C array. (type not LOCATOR.)

Invocation:
F77_ASSOC_type_ARRAY(farg,carg)

Arguments:

farg
A pointer to the FORTRAN array
carg
A pointer to the C array

Examples:

F77_ASSOC_type_ARRAY(farg,carg)
type not CHARACTER, LOGICAL or POINTER will expand as follows:

All systems: farg=carg

type CHARACTER, LOGICAL or POINTER will expand as follows:

All systems:




next up previous 252
Next: F77_CREATE_type_ARRAY - Create an array of type.
Up: Full Description of F77 Macros
Previous: DECLARE_type_ARRAY_DYN - Declare a dynamic type array

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