File:  [Research Unix] / researchv10dc / man / adm / man3 / getarg.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH GETARG 3F
.CT 2 data_man
.SH NAME
getarg, iargc \(mi command arguments to Fortran
.SH SYNOPSIS
.nf
.B subroutine getarg(argno, string)
.B integer argno
.B character *(*) string
.PP
.B iargc()
.fi
.SH DESCRIPTION
These procedures permit Fortran programs to access the command arguments.
The integer function
.I iargc
returns the number of command arguments.
The subroutine
.I getarg
stores the
.IR argno th
command argument in its second argument.
The string is truncated or padded with blanks,
in accord with the rules of Fortran character assignment.
.SH EXAMPLES
.TP
.L
a.out arg1 arg2
In a program invoked this way
.I iargc
will return 2.
.TP
.L
character*4 s
.br
.ns
.TP
.L
call getarg(2, s)
Place
.L arg2
in
.I s.
.SH "SEE ALSO"
.IR exec (2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.