Fortran Library Reference

getarg: Get a Command-Line Argument

The subroutine is called by:

call getarg( k, arg )

k

INTEGER*4

Input 

Index of argument (0=first=command name)  

arg

character*n

Output 

kth argument

n

INTEGER*4

Size of arg

Large enough to hold longest argument