home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5223 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.1 KB  |  43 lines

  1. Organization: Doctoral student, Industrial Administration, Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!br0w+
  3. Newsgroups: comp.lang.fortran
  4. Message-ID: <cfNeuOW00YUoI4qo1F@andrew.cmu.edu>
  5. Date: Wed, 27 Jan 1993 10:47:38 -0500 
  6. From: "Bruno W. Repetto" <br0w+@andrew.cmu.edu>
  7. Subject: Re: How to get command line arguments from unix with FORTRAN?
  8. In-Reply-To: <PMURPHY.93Jan26121847@orangutan.cv.nrao.edu>
  9. Lines: 32
  10.  
  11. Excerpts from netnews.comp.lang.fortran: 26-Jan-93 Re: How to get
  12. command line.. by Pat Murphy@nrao.edu 
  13. > From: pmurphy@nrao.edu (Pat Murphy)
  14. > Subject: Re: How to get command line arguments from unix with FORTRAN?
  15. > Date: Tue, 26 Jan 1993 17:18:47 GMT
  16. >  
  17. [Stuff deleted.]
  18.  
  19. > A brief experiment with telnet shows that his posting machine is not a
  20. > Sun: "ULTRIX V4.2A (Rev. 47)".  My f77 info for Ultrix (4.0),
  21. > fortunately shows getarg identical to the above.  However I know that
  22. > for other flavors of unix it is different.  For example, HP-UX uses a
  23. > function IGETARG with three arguments.
  24.  
  25. My guess is that it works as in Microsoft Fortran, versions 5. or better:
  26. The first argument is the argument number, integer.
  27. The second is the argument itself, a char.
  28. The third one is the lenght of the argument, integer.
  29.  
  30. In some systems, the first argument is the program name.  Careful with this.
  31.  
  32. Bruno.  br0w+@andrew.cmu.edu
  33. >                                 - Pat
  34. > --
  35. > ==========================================================================
  36. > | Patrick P. Murphy, Ph.D.                Scientific Programming Analyst |
  37. > | National Radio Astronomy Observatory    Net:       pmurphy@nrao.edu    |
  38. > | 520 Edgemont Road                       Phone:     (804) 296-0372      |
  39. > | Charlottesville, VA 22903-2475          VoiceMail: (804) 980-5889      |
  40. > |      "I don't believe in the no-win scenario"  --- James T. Kirk       |
  41. > ==========================================================================
  42.  
  43.