Fortran Main with C I/O

Mike Rovak mike at DRD.Com
Fri Sep 21 23:22:32 AEST 1990


bill%biomel at cs.dal.ca wrote:
} In article <1044 at helens.Stanford.EDU> joe at hanauma.Stanford.EDU (Joe Dellinger) writes:
} >
} >We just got the latest OS upgrade, which is the first one to be
} >"POSIX-compliant". Now we are told "if you want to be able to use C I/O
} >you'll have to have your mains in C"! This means rewriting a LOT of software.
} >
} >	OK. Are we really a special case? Is there anybody else out there
} >that writes Fortran mains but uses C to do the I/O? If so, let me know, so
} >we can make a case to them not to do this!
} 
} This would be an absolute disaster.  We use C I/O extensively for things
} like graphics, raw input, and to do things like display a file directory
} when asking the user to input a data file name.  If true, someone had
} better come up with a fix awfully fast!

Not a problem, guys.  Make a C main function whose sole purpose is to call
the Fortran routine.  Change the word "PROGRAM" in each Fortran routine
to "SUBROUTINE" and your job is done.

-- Mike

------------------------------------------------------------------------
Disclaimer: My opinions do not necessarily reflect those of my employer.
========================================================================
------------------------------------------------------------------------
     mike at DRD.Com  
     uunet!apctrc!drd!mike
========================================================================



More information about the Comp.lang.c mailing list