pro64-support
[Top] [All Lists]

Re: IA 64 fortran compiler and getargs

To: pro64-support@xxxxxxxxxxx
Subject: Re: IA 64 fortran compiler and getargs
From: "Ross A. Towle" <rat@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Mar 2001 09:44:02 -0800
In-reply-to: Ole W Saastad <ole@scali.no> "IA 64 fortran compiler and getargs" (Mar 14, 8:58am)
References: <3AAF24B5.225034B3@scali.no>
Sender: owner-pro64-support@xxxxxxxxxxx
getarg and iargc are part of the Pro64 release 0.13.

-Ross

A snippet from the man page for them (man pages are being written)

     subroutine getarg(i, c)
     character*N c
     integer*4 i

     integer*4 function iargc()
     integer j

     call getarg(i, c)
     j = iargc()

DESCRIPTION
     getarg returns the i-th command-line argument of the current process.

     iargc returns the index of the last argument.

          foo arg1 arg2 arg3

     getarg(2, c) would return the string ``arg2'' in the character variable
     c.

     iargc would return 3 as the value of the function call.


<Prev in Thread] Current Thread [Next in Thread>