pxfgetarg(3F)

PXFGETARG - Returns a command-line argument

As shipped in IRIX 6.5.22. Last changed in IRIX 6.5.19.

NAME
     PXFGETARG - Returns a command-line argument

SYNOPSIS
     CHARACTER*n buf
     INTEGER m, ilen, ierror
     CALL PXFGETARG(m, buf, ilen, ierror)

DESCRIPTION
     This routine is in libfortran.so which is linked by default when
     compiling programs with the MIPSpro 7 Fortran 90 compiler or when
     compiling programs with the -craylibs option to the MIPSpro F77
     compiler.

     The PXFGETARG subroutine examines the command line used to invoke the
     executing program and returns the mth command-line argument in buf.

     All arguments must be of default kind unless documented otherwise.  On
     IRIX systems, the default kind is KIND=4.

     This routine has the following arguments:

     m       An input integer variable or array element containing the
             number of the command-line argument to return in buf.  If m is
             zero, the command name is returned in buf.

     buf     An output character variable or array element containing the
             mth command-line argument.

     ilen    An output integer variable containing the significant length
             in characters of the string stored in buf.  If the length of
             the string is shorter than the length of buf, the shorter
             length is returned.  If the string is longer, the longer
             length of the string is returned.

     ierror  An output integer variable containing 0 if a value is returned
             in buf or containing the following:

             EINVAL    If m is out of range

             ETRUNC    if the declared length of buf is insufficient to
                       contain the string to be returned.  The value of the
                       command-line argument is truncated to fit in buf,
                       and ilen is set to the full length of the original
                       string.

NOTES
     The PXF_DEFINITIONS module can be used by Fortran 90 users to enable
     caller-callee interface checking.

SEE ALSO
     IPXFARGC(3F)