next up previous 252
Next: cnfCptr - Convert a FORTRAN pointer to a C pointer
Up: CNF C Routine Descriptions
Previous: cnfCalloc - Allocate space that may be accessed from C and FORTRAN


cnfCopyf - Copy one FORTRAN string to another FORTRAN string

Description:
The FORTRAN string in source_f is copied to dest_f. The destination string is filled with trailing blanks or truncated as necessary.

Invocation:
cnfCopyf( source_f, source_len, dest_f, dest_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
char *dest_f (Returned via pointer)
A pointer to the output FORTRAN string
int dest_len (Given)
The length of the output FORTRAN string



next up previous 252
Next: cnfCptr - Convert a FORTRAN pointer to a C pointer
Up: CNF C Routine Descriptions
Previous: cnfCalloc - Allocate space that may be accessed from C and FORTRAN

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