177. Use Fortran’s C interoperability capabilities to interact with C programs.
Due to the enormous popularity of the C programming language (References , , and ), many Fortran programmers need to be able call routines written in C, or written to conform to C calling conventions. Likewise, it is often useful for C programmers to call routines written in Fortran. Beginning with Fortran 2003, there is a new and standard mechanism to allow easier and more portable interfacing between Fortran and C.
Here are some of the topics that must be considered when code written in Fortran accesses that written in C and vice versa: