Calling Fortran subroutines from C
You can use the C language to customize a user-written subroutines and call routines originally written in Fortran language. C and Fortran interoperability is successful when data types are matched appropriately, arguments passed correctly, the code linked properly and the executable runs without error.