BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 25 Nov 1979 09:38:04 +0000 (01:38 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 25 Nov 1979 09:38:04 +0000 (01:38 -0800)
Work on file usr/man/man3/getarg.3f

Synthesized-from: 3bsd

usr/man/man3/getarg.3f [new file with mode: 0644]

diff --git a/usr/man/man3/getarg.3f b/usr/man/man3/getarg.3f
new file mode 100644 (file)
index 0000000..2d4d691
--- /dev/null
@@ -0,0 +1,36 @@
+.TH GETARG 3F
+.SH NAME
+getarg, iargc \- command arguments to Fortran
+.SH SYNOPSIS
+.nf
+.ft B
+subroutine getarg( argno, string )
+integer argno
+character \(**(\(**) string
+.PP
+.B iargc()
+.fi
+.ft R
+.SH DESCRIPTION
+These procedures permit Fortran programs to access the command arguments.
+The integer function
+.B iargc
+returns the number of command arguments.
+The subroutine
+.B getarg
+stores the nth command argument in its second argument.
+The string is truncated or padded with blanks,
+in accord with the rules of Fortran character assignment.
+.PP
+The command
+       go arg1 argument2
+.br
+will return 2 as the value of
+.B iargc.
+If \fBs\fR is declared character\(**4,
+then
+      call getarg(2, s)
+.br
+will put "argu" in \fBs\fR.
+.SH "SEE ALSO"
+exec(2)