Starlink User Note 209.11
12 May 2011
CNF and F77
Mixed Language Programming – FORTRAN and C
The CNF package comprises two sets of software which ease the task of writing portable programs in a mixture of FORTRAN and C. F77 is a set of C macros for handling the FORTRAN/C subroutine linkage in a portable way, and CNF is a set of functions to handle the difference between FORTRAN and C character strings, logical values and pointers to dynamically allocated memory.
pointer to char
 American National Standard – Programming Language – FORTRAN (ANSI X3.9-1978, ISO 1539-1980(E)). Publ, American National Standards Institute.
 American National Standard for Information Systems – Programming Language – C (ANSI X3.159-1989). Publ, American National Standards Institute.
 Banahan, M.F., 1988. The C Book: featuring the draft ANSI C standard. Publ, Addison-Wesley.