home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!convex!news.oc.com!spssig.spss.com!uchinews!msuinfo!rudolf.nscl.msu.edu!fox
- From: fox@rudolf.nscl.msu.edu (Ron Fox)
- Newsgroups: comp.lang.fortran
- Subject: Re: Unix ARGC,ARGV in Fortran 77
- Message-ID: <1992Aug20.120608.3562@msuinfo.cl.msu.edu>
- Date: 20 Aug 92 12:06:08 GMT
- References: <14542@borg.cs.unc.edu> <1848@mefos.se>
- Sender: news@msuinfo.cl.msu.edu
- Reply-To: fox@rudolf.nscl.msu.edu (Ron Fox)
- Organization: National Superconducting Cyclotron Lab.
- Lines: 26
-
- --
-
- >marshall@marshall.cs.unc.edu (Jonathan A. Marshall) writes:
- >: I need to write a Fortran program that will accept command-line
- >arguments.
- >: I'm running Ultrix f77 on a DECstation 5000. In C, command-line
- >arguments
- >: can be passed with argc and argv.
- >:
-
- According to pf 3-3 of the
- _DEC_FORTRAN_FOR_ULTRIX_RISC_SYSTEMS_USER_MANUAL_
- for version 3.0, the routines getarg() returns command line arguments.
- my version of the manual pages does have a man 3f getarg. So you
- can get the details there. Although in summary:
-
-
- nargs = iargc() ! Returns the number of arguments.
- call getarg(k, arg) ! Returns the k'th argument into arg.
-
-
- Ron Fox | FOX@MSUNSCL.BITNET | Where the name
- NSCL | FOX@RUDOLF.NSCL.MSU.EDU | goes on before
- Michigan State University | MSUHEP::RUDOLF::FOX | the quality
- East Lansing, MI 48824-1321 | | goes in.
- USA
-