cnfCreib

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

Description:

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

Invocation

pointer = cnfCreib( 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 cnfCreib
A pointer to the temporary storage location

Notes:

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