home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4686 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.2 KB

  1. Path: sparky!uunet!mcsun!fuug!kiae!demos!newsserv
  2. From: exn@bk302.exnet.msk.su (Volkov Igor Nikolaevich)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Re: Vax Fortran Things
  5. Date: Wed, 09 Dec 92 17:43:45 +0200
  6. Distribution: world
  7. Organization: AO Kalumb
  8. Message-ID: <ABnGX9hCTD@bk302.exnet.msk.su>
  9. Sender: news-service@newcom.kiae.su
  10. Reply-To: exn@bk302.exnet.msk.su
  11. Lines: 38
  12.  
  13. >>I am charged with converting a number of existing Fortran programs
  14. >>(I didn't write them) to C via f2c.  My long term goal is to re-write
  15. >>them in c (No slam intended to fortran, I just happen to be a c
  16. >>programmer) but am having some problems.
  17. >>
  18. >>Statements like this:
  19. >>
  20. >
  21. >Preprocess this somehow (I don't have a tool for it) to look like:
  22. >
  23. >>!     TYPE 85
  24. >       write( 6, 85 )
  25. >
  26. >>85   FORMAT (//' OUTPUT FILE NAME = ', $)
  27. >
  28. >>!     ACCEPT 70, OUTFILE
  29. >       read( 5, 70 ) outfile
  30. >
  31. >>
  32. >>give f2c fits.  I know what this is supposed to do, but how do I
  33. >>fix it so it is possible to use f2c with code?
  34. >>
  35. >
  36. >Make it standard FORTRAN.
  37. >--
  38. >Michael Lemke
  39.  
  40.         You forget about "$" - that is not Standart Fortran.
  41.         My advise - delete it:
  42.  
  43. 85      format('OUTPUT FILE NAME = ')
  44.  
  45. -----------
  46. Volkov Igor
  47. Moskow Government Technical University
  48. aspirant
  49.  
  50.  
  51.