Research V4 release
[unix-history] / man / man3 / getarg.3
CommitLineData
f5c297e0
KT
1.th GETARG III 11/24/73
2.sh NAME
3getarg \*- get command arguments from Fortran
4.sh SYNOPSIS
5.ft B
6call getarg ( i, iarray, \fR[ \fB, isize \fR]\fB )
7.s3
8.li
9... = iargc(dummy)
10.ft R
11.sh DESCRIPTION
12The
13.it getarg
14entry fills in
15.it iarray
16(which is considered to be
17.it integer)
18with the Hollerith string representing the
19.it i
20th
21argument to the command
22in which it it is called.
23If no
24.it isize
25argument is specified,
26at least one blank is placed after the argument,
27and the last word affected is blank padded.
28The user should make sure that the array is big enough.
29.s3
30If the
31.it isize
32argument is given,
33the argument will be followed by blanks
34to fill up
35.it isize
36words, but even if the argument is long no more than
37that many words will be filled in.
38.s3
39The blank-padded array is suitable for use as an
40argument to setfil (III).
41.s3
42The
43.it iargc
44entry returns the number of arguments to the command,
45counting the first (file-name) argument.
46.sh "SEE ALSO"
47exec (II),
48setfil (III)
49.sh BUGS