Function/Subroutine Calls

Being able to pass data back and forth between C and FORTRAN is all well and good, but doing so is useless without actually manipulating that data. Thus we come to the topic of calling “foreign” language functions[1], and of passing functions themselves as data.

Include in this chapter are the following:

  1. C Function Prototypes for FORTRAN Callable Functions/Subroutines
  2. C Functions Calling FORTRAN Functions
  3. FORTRAN Functions Calling C Functions

C Function Prototypes for FORTRAN Callable Functions/Subroutines

C Functions Calling FORTRAN Functions

FORTRAN Functions Calling C Functions


  1. FORTRAN 77 subroutines are included in the definition of “function,” as they are from the C perspectively, equivalent to a void function.


Valid XHTML 1.0 Strict Valid CSS!
Fave icon Database CMYK © 2008 – Barry Mieny
Syntax highlighting using highlight.js by © 2006 – Ivan Sagalaev