Description:
Export a C string to a FORTRAN string, copying a maximum of ‘max’ characters. If the
C string is shorter than the space allocated to the FORTRAN string, then pad it with blanks, even
if the whole source string was not copied as it had more than ‘max’ characters. If the C
string is longer than the space allocated to the FORTRAN string, then truncate the string.
Invocation
cnfExpn( source_c, max, dest_f, dest_len )
Arguments
const char
source_c (Given)
A pointer to the input C string
int max (Given)
The maximum number of character to be copied from source_c to
dest_f
char dest_f
(Returned via pointer)
A pointer to the FORTRAN output string
int dest_len (Given)
The length of
the FORTRAN output string