next up previous 252
Next: F77_EXTERNAL_NAME - The external name of a function
Up: Full Description of F77 Macros
Previous: F77_EXPORT_CHARACTER_ARRAY - Export a CHARACTER array from C to FORTRAN


F77_EXPORT_CHARACTER_ARRAY_P - Export an array of pointers to char from C to a FORTRAN CHARACTER array.

Description:
The strings pointed to by the specified number of elements of the C array will be copied to the FORTRAN array, making any required changes to the data.

Invocation:
F77_EXPORT_CHARACTER_ARRAY_P(carg,farg,lf,nels)

Arguments:

carg
A pointer to the C array
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_P(carg,farg,lc,nels)
will expand as follows:

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


Associated macro:
F77_IMPORT_CHARACTER_ARRAY_P



next up previous 252
Next: F77_EXTERNAL_NAME - The external name of a function
Up: Full Description of F77 Macros
Previous: F77_EXPORT_CHARACTER_ARRAY - Export a CHARACTER array from C to FORTRAN

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