[comp.lang.fortran] Reading command line arguments with Microsoft FORTRAN

rjq@chepil.weru.ksu.edu (Robert Quinn) (05/24/91)

 Anyone have any clues on reading the command line arguments in
a Microsoft FORTRAN program? Something like getopts or getarg(3F)
from SunOS would be great! 
 Thanks in advance.

--
Rob Quinn                 More witty humor from the Quinn Man.
rjq@chepil.weru.ksu.edu
QuinnBob@KSUVM.BITNET         USDA Wind Erosion Unit

sichermn@beach.csulb.edu (Jeff Sicherman) (05/24/91)

In article <1991May23.193027.1726@maverick.ksu.ksu.edu> rjq@chepil.weru.ksu.edu writes:
>
> Anyone have any clues on reading the command line arguments in
>a Microsoft FORTRAN program? Something like getopts or getarg(3F)
>from SunOS would be great! 
> Thanks in advance.
>

  Which version ? 5.0 has the built-ins (as an extension). 4.x
does not. The upgrade is $100+s/h. Some libraries probably also support
it.

silvert@cs.dal.ca (Bill Silvert) (05/24/91)

In article <1991May23.193027.1726@maverick.ksu.ksu.edu> rjq@chepil.weru.ksu.edu writes:
>
> Anyone have any clues on reading the command line arguments in
>a Microsoft FORTRAN program? Something like getopts or getarg(3F)
>from SunOS would be great! 

It was introduced in version 5.0 as GETARG, documented in section 5.3.3
of the Reference Manual on p. 271-272.
-- 
William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
UUCP=..!{uunet|watmath}!dalcs!biome!silvert
BITNET=silvert%biome%dalcs@dalac	InterNet=silvert%biome@cs.dal.ca