Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getarg(3)

getopt(3)



  getarg(3)                           CLIX                           getarg(3)



  NAME

    getarg - Returns a FORTRAN command line argument

  LIBRARY

    Math Library (libap_m.a)

  SYNOPSIS

    call getarg(i, c)
    character*N c
    integer i

  PARAMETERS

    c   An argument of type character.  The asterisk and number following the
        keyword character specify the number of characters in c.

    i   An argument of type integer, specifying the command line argument to
        be returned.

  DESCRIPTION

    The getarg() function returns the i-th command-line argument of the
    current process.  Thus, if a program were invoked with

    foo arg1 arg2 arg3

    the getarg() function would return the string arg2 in the character
    variable c.

  EXAMPLES

    The following displays the third argument on the command line:

    PROGRAM fgetarg
    CHARACTER*20 ans
    integer i
    i = 3
    call getarg(i, ans)
    PRINT *, 'The answer is ',ans
    END


  RETURN VALUES

    See DESCRIPTION.

  RELATED INFORMATION




  2/94 - Intergraph Corporation                                              1






  getarg(3)                           CLIX                           getarg(3)



    Functions:  getopt(3)





















































  2                                              Intergraph Corporation - 2/94




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