next up previous 252
Next: cnfCrela - Create a temporary FORTRAN LOGICAL array and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCreib - Create a temporary C string and import a FORTRAN string into it including trailing blanks


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.



next up previous 252
Next: cnfCrela - Create a temporary FORTRAN LOGICAL array and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCreib - Create a temporary C string and import a FORTRAN string into it including trailing blanks

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