Manual Page Result
0
Command: getarg | Section: 3 | Source: UNIX v10 | File: getarg.3
GETARG(3F) GETARG(3F)
NAME
getarg, iargc - command arguments to Fortran
SYNOPSIS
subroutine getarg(argno, string)
integer argno
character *(*) string
iargc()
DESCRIPTION
These procedures permit Fortran programs to access the command argu-
ments. The integer function iargc returns the number of command argu-
ments. The subroutine getarg stores the argnoth command argument in
its second argument. The string is truncated or padded with blanks, in
accord with the rules of Fortran character assignment.
EXAMPLES
a.out arg1 arg2
In a program invoked this way iargc will return 2.
character*4 s
call getarg(2, s)
Place in s.
SEE ALSO
exec(2)
GETARG(3F)