next up previous 252
Next: F77_EXPORT_type_ARRAY - Export an array of type from C to FORTRAN
Up: Full Description of F77 Macros
Previous: F77_CREATE_type_ARRAY - Create an array of type.


F77_EXPORT_type - Export a C variable to a FORTRAN variable.

Description:
Copies a C variable to a FORTRAN variable making any required changes to the data. (type not CHARACTER.)

Invocation:
F77_EXPORT_type(carg,farg)

Arguments:

carg
The C value
farg
The FORTRAN variable

Examples:

F77_EXPORT_type(carg,farg)
type LOGICAL will expand as follows:

All systems: farg=carg?F77_TRUE:F77_FALSE

type POINTER will expand as follows:

All systems: farg=cnfFptr(carg)

type LOCATOR will expand as follows:

All systems: cnfExpch(carg,farg,DAT__SZLOC)

All other types will expand as follows:

All systems: farg=carg


Associated macro:
F77_EXPORT_CHARACTER



next up previous 252
Next: F77_EXPORT_type_ARRAY - Export an array of type from C to FORTRAN
Up: Full Description of F77 Macros
Previous: F77_CREATE_type_ARRAY - Create an array of type.

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