Description:
The FORTRAN array will be copied to the series of C strings pointed
at by the elements of the C array of pointers. If there is room (determined by the given maximum
string length) strings will be null-terminated. Any required changes to the data will be
made.
Invocation
F77_IMPORT_CHARACTER_ARRAY_P(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 maximum length of the C strings,
including terminating null if required.
nels
The number of elements to be exported
Examples:
F77_IMPORT_CHARACTER_ARRAY_P(farg,lf,carg,lc,nels)
will expand as
follows:
All systems: | { int f77dims[1];f77dims[0]=nels; |
| cnfImprtap(farg,lf,carg,lc,f77dims);} |
Associated macro: