cnfImprt

Import a FORTRAN string into a C string

Description:

Import a FORTRAN string into a C string, discarding trailing blanks. The null character is appended to the C string after the last non-blank character.

Invocation

cnfImprt( source_f, source_len, dest_c )

Arguments

const char source_f (Given)
A pointer to the input FORTRAN string
int source_len (Given)
The length of the input FORTRAN string
char dest_c (Returned via pointer)
A pointer to the output C string

Notes:

No check is made that there is sufficient space allocated to the C string to hold the FORTRAN string and a terminating null. It is the responsibility of the programmer to check this.