next up previous 252
Next: type_FUNCTION_ARG - Pass a FUNCTION argument to a FORTRAN routine
Up: Full Description of F77 Macros
Previous: type_ARRAY_ARG - Pass an array argument to a FORTRAN routine


type_FUNCTION - Declare a FUNCTION argument

Description:
Declare a C function argument, to be a FORTRAN-callable FUNCTION of the specified type, passed from a FORTRAN program. (type is one of CHARACTER, INTEGER, REAL, DOUBLE, LOGICAL, BYTE, WORD, UBYTE, UWORD or POINTER.)

Invocation:
type_FUNCTION(arg)

Arguments:

arg
The dummy argument to be declared.

Examples:

type_FUNCTION(arg)
will expand as follows:

All Systems: F77_type_TYPE ($*$F77_EXTERNAL_NAME(arg))()

where F77_type_TYPE and F77_EXTERNAL_NAME expand appropriately for the platform.




next up previous 252
Next: type_FUNCTION_ARG - Pass a FUNCTION argument to a FORTRAN routine
Up: Full Description of F77 Macros
Previous: type_ARRAY_ARG - Pass an array argument to a FORTRAN routine

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:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council