SUN/209.11
Starlink Project
Starlink User Note 209.11
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
P.W. Draper
D.S. Berry
12 May 2011
CNF and F77
Mixed Language Programming – FORTRAN and C
Version 4.3
Programmer’s Manual
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
[1] American National Standard – Programming Language – FORTRAN (ANSI X3.9-1978, ISO 1539-1980(E)). Publ, American National Standards Institute.
[2] American National Standard for Information Systems – Programming Language – C (ANSI X3.159-1989). Publ, American National Standards Institute.
[3] Banahan, M.F., 1988. The C Book: featuring the draft ANSI C standard. Publ, Addison-Wesley.