Example of declaration for C calling Fortran
The following example shows a partial C routine that calls a Fortran function. The calling C routine contains the #pragma linkage directive for the Fortran function FORTFCN, the function prototype for the Fortran function, and a static call to the Fortran function.
C function | Fortran function |
---|---|
|
|