Next: cnfExprta - Export a C string array to a FORTRAN CHARACTER array
Up: CNF C Routine Descriptions
Previous: cnfExpn - Export a C string to a FORTRAN string, copying a given maximum number of characters
cnfExprt
- Export a C string to a FORTRAN string
- Description:
- Export a C string to a FORTRAN string. If the C string is
shorter than the space allocated to the FORTRAN string, then pad
it with blanks. If the C string is longer than the space
allocated to the FORTRAN string, then truncate the string.
- Invocation:
- cnfExprt( source_c, dest_f, dest_len )
- Arguments:
-
-
const char *source_c (Given)
-
A pointer to the input C 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: cnfExprta - Export a C string array to a FORTRAN CHARACTER array
Up: CNF C Routine Descriptions
Previous: cnfExpn - Export a C string to a FORTRAN string, copying a given maximum number of characters
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