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
Size of arg
Large enough to hold longest argument