Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hplred!sivaram From: sivaram@hplred.HP.COM (S. Sivaramakrishnan) Newsgroups: comp.lang.c Subject: Replace Fortran Libraries with C Message-ID: <810005@hplred.HP.COM> Date: 14 Mar 91 18:40:16 GMT Organization: Hewlett Packard Labs, Palo Alto CA Lines: 15 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