Next: SUBROUTINE_ARG - Pass a SUBROUTINE argument to a FORTRAN routine.
Up: Full Description of F77 Macros
Previous: GENPTR_SUBROUTINE - Generate a pointer to a SUBROUTINE argument.
SUBROUTINE
- Declare a SUBROUTINE argument.
- Description:
- Declare a C function argument, given that the actual argument will be a
SUBROUTINE name passed from a FORTRAN program.
- Invocation:
- SUBROUTINE(name)
- Arguments:
-
-
name
-
The dummy argument to be declared.
- Examples:
-
- SUBROUTINE(name)
- will expand as follows:
| All systems: |
void (*name)() |
Next: SUBROUTINE_ARG - Pass a SUBROUTINE argument to a FORTRAN routine.
Up: Full Description of F77 Macros
Previous: GENPTR_SUBROUTINE - Generate a pointer to a SUBROUTINE argument.
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