next up previous 252
Next: F77_IMPORT_type_ARRAY - Import an array of type from FORTRAN to C
Up: Full Description of F77 Macros
Previous: F77_FREE_type - Free a dynamic variable of type


F77_IMPORT_type - Import a FORTRAN variable to a C variable.

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

Invocation:
F77_IMPORT_type(farg,carg)

Arguments:

farg
The C value
carg
The FORTRAN variable

Examples:

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

All systems: carg=F77_ISTRUE(farg)

type POINTER will expand as follows:

All systems: carg=cnfCptr(farg)

type LOCATOR will expand as follows:

All systems: cnfImpch(farg,DAT__SZLOC,carg)

All other types will expand as follows:

All systems: carg=farg


Associated macro:
F77_IMPORT_CHARACTER



next up previous 252
Next: F77_IMPORT_type_ARRAY - Import an array of type from FORTRAN to C
Up: Full Description of F77 Macros
Previous: F77_FREE_type - Free a dynamic variable 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