*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ftn/getarg (3)              
Title
Content
Arch
Section
 

Contents


GETARG(3F)							    GETARG(3F)


NAME    [Toc]    [Back]

     getarg, iargc - return Fortran command-line argument

SYNOPSIS    [Toc]    [Back]

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

     integer*4 function	iargc()
     integer j

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

DESCRIPTION    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

      
      
     getopt(3C).

NOTES    [Toc]    [Back]

     The compiler expects the existence	of a Fortran MAIN_ program when	these
     functions are used.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pxfgetarg IRIX Returns a command-line argument
getopt OpenBSD get option character from command line argument list
getopt_long_only OpenBSD get long options from command line argument list
getopt NetBSD get option character from command line argument list
getopt_long NetBSD get long options from command line argument list
getopt_long OpenBSD get long options from command line argument list
getopt FreeBSD get option character from command line argument list
getopt_long FreeBSD get long options from command line argument list
imag IRIX FORTRAN imaginary part of complex argument
edit Tru64 Edits a file line by line with a simplified command set
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service