[comp.lang.c] Replace Fortran Libraries with C

sivaram@hplred.HP.COM (S. Sivaramakrishnan) (03/15/91)

Assume you have a machine whose Fortran libraries have been "lost".  However,
this machine has a Fortran compiler, a C compiler and C libraries.  You
would like to run some fortran code which has a few common library
calls - read/write, open/close of files etc.  Can this be reasonably
accomplished? How?

Ideally, this would be an automated process where (say) a fortran write
is converted into one or more C printf statements with suitable format
conversions.

I have no problem with some changes to the fortran source, eg. defining a
"new_write" function that replaces all "write" calls to yield the desired
effect.

Sivaram