getarg(3f)

Name
getarg, iargc - returns command line arguments

Syntax
integer i
character*len arg
external getarg
call getarg ( i, arg )

integer iargc, nargs
external iargc
nargs = iargc( )

Description
The getarg subroutine returns the i th command line argument in character string arg. The 0th argument is the command name.

The iargc function returns the number of command line arguments.

Files
libU77.a

Bugs
The getarg and iargc functions are highly system dependant. Most UNIX Fortran implimentations provide them, but sample code for their implimentation is provided with the libU77 source code. This works with f2c , g77 and the NAG f90 compiler.