GETARG(3F) GETARG(3F)
getarg, iargc - return Fortran command-line argument
subroutine getarg(i, c)
character*N c
integer*4 i
integer*4 function iargc()
integer j
call getarg(i, c)
j = iargc()
getarg returns the i-th command-line argument of the current process.
iargc returns the index of the last argument.
foo arg1 arg2 arg3
getarg(2, c) would return the string ``arg2'' in the character variable
c.
iargc would return 3 as the value of the function call.
getopt(3C).
The compiler expects the existence of a Fortran MAIN_ program when these
functions are used.
PPPPaaaaggggeeee 1111 [ Back ]
|