Next: cnfImpla - Import a FORTRAN LOGICAL array into a C int array
Up: CNF C Routine Descriptions
Previous: cnfImpbn - Import no more than max characters from a FORTRAN string into a C string, retaining trailing blanks
cnfImpch
- Import a FORTRAN string into a C array of char.
- Description:
- Import a FORTRAN string into a C array of char, copying `nchars'
characters.
No characters, are special so this may be used to import an HDS locator
which could contain any character.
- Invocation:
- cnfImprt( source_f, nchars, dest_c )
- Arguments:
-
-
const char *source_f (Given)
-
A pointer to the input FORTRAN string
-
int nchars (Given)
-
The number of characters to be copied from source_f to
dest_c
-
char *dest_c (Returned via pointer)
-
A pointer to the C array of char
- Notes:
- No check is made that there is sufficient space allocated to
the C array to hold the FORTRAN string.
It is the responsibility of the programmer to check this.
Next: cnfImpla - Import a FORTRAN LOGICAL array into a C int array
Up: CNF C Routine Descriptions
Previous: cnfImpbn - Import no more than max characters from a FORTRAN string into a C string, retaining 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