next up previous 252
Next: F77_EXPORT_CHARACTER_ARRAY_P - Export an array of pointers to char from C to a FORTRAN CHARACTER array.
Up: Full Description of F77 Macros
Previous: F77_EXPORT_CHARACTER - Export a C variable to a FORTRAN variable.


F77_EXPORT_CHARACTER_ARRAY - Export a CHARACTER array from C to FORTRAN

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

Invocation:
F77_EXPORT_CHARACTER_ARRAY(carg,lc,farg,lf,nels)

Arguments:

carg
A pointer to the C array
lc
The length of the C strings
farg
A pointer to the FORTRAN array
lf
The length of the FORTRAN strings
nels
The number of elements to be exported

Examples:

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

  {int f77dims[1];f77dims[0]=nels;
  cnfExprta(carg,lc,farg,lf,1,f77dims);}


Associated macro:
F77_IMPORT_CHARACTER_ARRAY



next up previous 252
Next: F77_EXPORT_CHARACTER_ARRAY_P - Export an array of pointers to char from C to a FORTRAN CHARACTER array.
Up: Full Description of F77 Macros
Previous: F77_EXPORT_CHARACTER - Export a C variable to a FORTRAN 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