next up previous 252
Next: Using Dynamic FORTRAN Character Strings
Up: Converting Between FORTRAN and C Strings
Previous: The CNF Functions


Handling Byte Strings (HDS Locators)

Sometimes FORTRAN CHARACTER variables are used to contain strings of bytes rather than normal, printable character strings - a particular case of this is HDS locators. In this case, special characters, such as NULL, cease to have their normal meaning and this could confuse the standard CNF import and export functions. For this reason, functions cnfImpch and cnfExpch are provided. These functions just import and export a given number of characters.



next up previous 252
Next: Using Dynamic FORTRAN Character Strings
Up: Converting Between FORTRAN and C Strings
Previous: The CNF Functions

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