Replace Fortran Libraries with C
S. Sivaramakrishnan
sivaram at hplred.HP.COM
Fri Mar 15 04:40:16 AEST 1991
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
More information about the Comp.lang.c
mailing list