next up previous 252
Next: cnfCreim - Create a temporary C string and import a FORTRAN string into it discarding trailing blanks
Up: CNF C Routine Descriptions
Previous: cnfCrefa - Create a temporary FORTRAN CHARACTER array and return a pointer to it.


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.



next up previous 252
Next: cnfCreim - Create a temporary C string and import a FORTRAN string into it discarding trailing blanks
Up: CNF C Routine Descriptions
Previous: cnfCrefa - Create a temporary FORTRAN CHARACTER array and return a pointer to it.

CNF and F77 Mixed Language Programming -- FORTRAN and C
Starlink User Note 209
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
19 January 2000
E-mail:ussc@star.rl.ac.uk