Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 6/7/83; site hao.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!floyd!cmcl2!seismo!hao!woods From: woods@hao.UUCP (Greg Woods) Newsgroups: net.lang.f77 Subject: Re: command arguments in Fortran Message-ID: <991@hao.UUCP> Date: Tue, 29-May-84 15:48:21 EDT Article-I.D.: hao.991 Posted: Tue May 29 15:48:21 1984 Date-Received: Sat, 2-Jun-84 09:23:35 EDT References: <487@noscvax.UUCP> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 15 You really must tell us what version of f77 you are running when you ask questions like this. We run 4.2 here, and in the 3F section of the manual (FORTRAN subroutines) there is getarg(3f), iargc(3f), and getenv(3f), which will return the command line arguments. iargc(3f) is a function that returns "argc", "call getarg(k,arg)" returns *argv[k-1] in the CHARACTER variable "arg", and "call getenv(env,value)" returns the value of the environment variable "env" in "value". Greg "FORTRAN hacker" Woods -- {ucbvax!hplabs | allegra!nbires | decvax!stcvax | harpo!seismo | ihnp4!stcvax} !hao!woods "Will we leave this place an empty stone?"