cnfCreim

Create a temporary C string and import a FORTRAN string into it discarding trailing blanks

Description:

Create a temporary C string, import a FORTRAN string into it and return a pointer to this C string. Any trailing blanks in the FORTRAN string are discarded. The length of the C string that is created is just long enough to hold the FORTRAN string (less trailing blanks), plus the null terminator.

Invocation

pointer = cnfCreim( source_f, source_len )

Arguments

const char source_f (Given)
A pointer to the input FORTRAN string
int source_len (Given)
The length of the input FORTRAN string

Returned Value

char cnfCreim
A pointer to the storage space allocated by this function.

Notes:

If the routine could not create the space, then it returns a null pointer.