Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getarg(3F) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

GETARG(3F)  —  System Interface Manual — Fortran Interfaces

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 arguments.  The integer function iargc returns the number of command arguments.  The subroutine 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. 

The command
       go arg1 argument2
will return 2 as the value of iargc.  If s is declared character∗4, then
      call getarg(2, s)
will put “argu” in s. 

SEE ALSO

exec(2)

Sun System Release 0.3  —  19 January 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026