When doing mixed-language programming, what are the functions f90_init() and f90_io_finish()?
Top] These functions are needed when the main program is in C instead of Fortran. The f90_init function initialises the Fortran environment, including the floating-point status, command-line arguments, and i/o subsystem. The f90_io_finish function writes the contents of all the Fortran output buffers to their files, and closes all the Fortran files. The following example shows how to use these functions. int main(int argc,char *argv[]) { f90_init( argc, argv ); /* At this point Fortran routines can be safely called.