gfortran & iargc/getarg

Satish Balay balay@fastmail.fm
Wed Apr 7 04:26:00 GMT 2004



On Tue, 6 Apr 2004, Steve Kargl wrote:

> On Tue, Apr 06, 2004 at 05:07:20PM -0500, Satish Balay wrote:
> > 
> > My next issue is command line argument processing support. Is there a
> > plan to add iargc()/getarg() or ipxfargc()/pxfgetarg() support into
> > gfortran?
> > 
> 
> Yes, iargc()/getarg() will eventually be supported.  I don't
> know what ipxfargc()/pxfgetarg() do.

Same functionality - some compilers are moving to this notation (for
eg: intel compilers version 8)

Googling a bit - gives: (ipxfargc standard)

>>>
POSIX: Several vendors have implemented the IEEE POSIX 1003.9 binding
to FORTRAN 77.Function IPXFARGC obtains the number of command
arguments. Subroutine PXFGETARG (N, ARG, ARGLEN, IERROR) gets the list
of command line arguments. PXFGETARG() places the Nthcommand-line
argument in the character string ARG. The significant length of ARG is
returned in ARGLEN. The standard also goes on to define some error
conditions (argument-too-long andN-out-of-range), as well as the
numbering of arguments (0 is the command/verb, 1 is the first
argument, etc). Subroutines PXFGETENV and PXFSETENV respectively get
and set environment variables.Subroutine PXFCLEARENV clears all
environment variables.
>>>

Satish



More information about the Fortran mailing list