Sun Studio 12: Fortran Library Reference

1.4.15.1 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