next up previous 252
Next: cnfCrefa - Create a temporary FORTRAN CHARACTER array and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCreat - Create a temporary C string and return a pointer to it


cnfCref - Create a temporary FORTRAN CHARACTER string and return a pointer to it.

Description:
Memory is obtained for a FORTRAN CHARACTER string of the specified length and a pointer is returned which may be passed from C to a FORTRAN subroutine. The string is not initialised to blanks.

Invocation:
string_f = cnfCref( string_f_len )

Arguments:

int string_f_len (Given)
The required length of the FORTRAN string.

Returned Value:

F77_CHARACTER_ARG_TYPE *cnfCref
A pointer to the storage that has been allocated by this routine. Note that this is not necessarily the location of the string of characters.

Notes:



next up previous 252
Next: cnfCrefa - Create a temporary FORTRAN CHARACTER array and return a pointer to it.
Up: CNF C Routine Descriptions
Previous: cnfCreat - Create a temporary C string 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