Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getarg(3f) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

getenv(3f)

getopt(3)

getarg(3f)

NAME

getarg, iargc − return command line arguments

SYNTAX

subroutine getarg(k, arg)
character*(*) arg

function iargc()

DESCRIPTION

A call to getarg will return the i-th command line argument in character string arg.  The i-th argument is the command name.  Thus, if a program were invoked with:

foo arg1 arg2 arg3

Then, getargc(2, c) would return the string arg2 in the character variable c. 

The iargc function returns the number of command line arguments passed to the program.  Thus, if a program were invoked with:

foo arg1 arg2 arg3

Then, iargc() would return 3. 

FILES

/usr/lib/libU77.a

SEE ALSO

exec(2), getenv(3f), getopt(3)

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