next up previous 252
Next: F77_IMPORT_CHARACTER_ARRAY_P - Import a FORTRAN CHARACTER array to a C array of pointers to char.
Up: Full Description of F77 Macros
Previous: F77_IMPORT_CHARACTER - Import a FORTRAN variable to a C variable.


F77_IMPORT_CHARACTER_ARRAY - Import a CHARACTER array from FORTRAN to C.

Description:
The FORTRAN array will be copied to the the C array, making any required changes to the data.

Invocation:
F77_IMPORT_CHARACTER_ARRAY(farg,len_f,carg,len_c,nels)

Arguments:

farg
A pointer to the FORTRAN array
len_f
The length of each element of the FORTRAN array
carg
A pointer to the C array
len_c
The length of each element of the C array
nels
The number of elements to be exported

Examples:

F77_IMPORT_CHARACTER_ARRAY(farg,lf,carg,lc,nels)
will expand as follows:

All systems: {int f77dims[1];f77dims[0]=nels;
  cnfImprta(farg,lf,carg,lc,1,f77dims);}


Associated macro:
F77_EXPORT_CHARACTER_ARRAY



next up previous 252
Next: F77_IMPORT_CHARACTER_ARRAY_P - Import a FORTRAN CHARACTER array to a C array of pointers to char.
Up: Full Description of F77 Macros
Previous: F77_IMPORT_CHARACTER - Import a FORTRAN variable to a C variable.

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