home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!kiae!demos!newsserv
- From: exn@bk302.exnet.msk.su (Volkov Igor Nikolaevich)
- Newsgroups: comp.lang.fortran
- Subject: Re: Re: Vax Fortran Things
- Date: Wed, 09 Dec 92 17:43:45 +0200
- Distribution: world
- Organization: AO Kalumb
- Message-ID: <ABnGX9hCTD@bk302.exnet.msk.su>
- Sender: news-service@newcom.kiae.su
- Reply-To: exn@bk302.exnet.msk.su
- Lines: 38
-
- >>I am charged with converting a number of existing Fortran programs
- >>(I didn't write them) to C via f2c. My long term goal is to re-write
- >>them in c (No slam intended to fortran, I just happen to be a c
- >>programmer) but am having some problems.
- >>
- >>Statements like this:
- >>
- >
- >Preprocess this somehow (I don't have a tool for it) to look like:
- >
- >>! TYPE 85
- > write( 6, 85 )
- >
- >>85 FORMAT (//' OUTPUT FILE NAME = ', $)
- >
- >>! ACCEPT 70, OUTFILE
- > read( 5, 70 ) outfile
- >
- >>
- >>give f2c fits. I know what this is supposed to do, but how do I
- >>fix it so it is possible to use f2c with code?
- >>
- >
- >Make it standard FORTRAN.
- >--
- >Michael Lemke
-
- You forget about "$" - that is not Standart Fortran.
- My advise - delete it:
-
- 85 format('OUTPUT FILE NAME = ')
-
- -----------
- Volkov Igor
- Moskow Government Technical University
- aspirant
-
-
-