Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!uakari.primate.wisc.edu!ames!dftsrv!etac632!joe From: joe@etac632 (Joe Fulson-Woytek) Newsgroups: comp.lang.fortran Subject: Re: Fortran commmand line arguments Message-ID: <2649@dftsrv.gsfc.nasa.gov> Date: 29 Jun 90 11:06:46 GMT References: <1990Jun28.153908.4911@caen.engin.umich.edu> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: joe@etac632.gsfc.nasa.gov (Joe Fulson-Woytek) Distribution: usa Organization: NSESCC, Goddard Space Flight Center, Greenbelt MD Lines: 25 In article <1990Jun28.153908.4911@caen.engin.umich.edu> cys@caen.engin.umich.edu (CAO YUSONG ) writes: > > I am writting a Fortran program now. I used to be a C programmer. > In C, one can retrieve information from command line arguments, i.e. > > In program: > > main(argc, argv) > int argc; > char **argv; > { > ... > } > It depends on the compiler/machine. On the Iris workstations there's a subroutine getarg for getting the arguments and a function iargc for getting the number of arguments. There is no standard for doing this, however, so you need to check your Fortran reference manual for the machine you are using. Joe Fulson-Woytek joe@etac632.gsfc.nasa.gov