Next: GENPTR_type_ARRAY - Generate a pointer to an array argument
Up: Full Description of F77 Macros
Previous: F77_type_FUNCTION - Declare a FORTRAN function
GENPTR_type
- Generate a pointer to an argument
- Description:
- Ensure that there exists a pointer of the appropriate type to the
variable that has been passed as an actual argument from FORTRAN to
a C routine.
Since FORTRAN usually passes arguments by reference, the pointer is
commonly available directly from the argument list, so this macro is
null.
(type not LOCATOR.)
- Invocation:
- GENPTR_type(arg)
- Arguments:
-
-
arg
-
The dummy argument.
- Examples:
-
- GENPTR_type(arg)
- will expand as follows:
- Associated macro:
- GENPTR_CHARACTER
Next: GENPTR_type_ARRAY - Generate a pointer to an array argument
Up: Full Description of F77 Macros
Previous: F77_type_FUNCTION - Declare a FORTRAN function
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