Next:
CHARACTER_ARG - Pass a CHARACTER argument to a FORTRAN routine
Up:
Full Description of F77 Macros
Previous:
Specific Descriptions
CHARACTER - Declare a CHARACTER argument
Description:
Declare a C function argument, given that the actual argument will be a CHARACTER variable passed from a FORTRAN program.
Invocation:
CHARACTER(arg)
Arguments:
arg
The dummy argument to be declared.
Examples:
CHARACTER(x)
will expand as follows:
All Unix:
char
x
VAX/VMS:
struct dsc$descriptor_s
x_arg
Notes:
On a VAX/VMS system, the macro expands to a pointer to a descriptor whereas on other systems it expands to a pointer to char.
Next:
CHARACTER_ARG - Pass a CHARACTER argument to a FORTRAN routine
Up:
Full Description of F77 Macros
Previous:
Specific Descriptions
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