Next: type_FUNCTION - Declare a FUNCTION argument
Up: Full Description of F77 Macros
Previous: type_ARRAY - Declare a array argument
type_ARRAY_ARG
- Pass an array argument to a FORTRAN routine
- Description:
- Pass an array argument of the appropriate type to a FORTRAN routine.
The argument should be the address of the array.
(type not LOCATOR.)
- Invocation:
- type_ARRAY_ARG(p_arg)
- Arguments:
-
-
p_arg
-
A pointer to the actual array being passed.
- Examples:
-
- type_ARRAY_ARG(arg)
- will expand as follows:
All systems: |
(F77_type_TYPE *)arg |
- Notes:
- The cast in the expansion for Unix ensures that multi-dimensional
arrays (arrays of arrays), for example as declared by
DECLARE_type_ARRAY, may be passed.
- Associated macro:
- CHARACTER_ARRAY_ARG
Next: type_FUNCTION - Declare a FUNCTION argument
Up: Full Description of F77 Macros
Previous: type_ARRAY - Declare a array argument
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