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