Bell 32V release
[unix-history] / usr / man / man3 / getarg.3f
CommitLineData
6a0e9840
TL
1.TH GETARG 3F
2.SH NAME
3getarg, iargc \- command arguments to Fortran
4.nf
5.ft B
6subroutine getarg( argno, string )
7integer argno
8character \(**(\(**) string
9.PP
10.B iargc()
11.fi
12.ft R
13.SH DESCRIPTION
14These procedures permit Fortran programs to access the command arguments.
15The integer function
16.B iargc
17returns the number of command arguments.
18The subroutine
19.B getarg
20stores the nth command argument in its second argument.
21The string is truncated or padded with blanks,
22in accord with the rules of Fortran character assignment.
23.PP
24The command
25 go arg1 argument2
26.br
27will return 2 as the value of
28.B iargc.
29If \fBs\fR is declared character\(**4,
30then
31 call getarg(2, s)
32.br
33will put "argu" in \fBs\fR.
34.SH "SEE ALSO"
35exec(2)