iargc man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

GETARG(3F)							    GETARG(3F)

NAME
       getarg, iargc - get the kth command-line argument

SYNOPSIS
       subroutine getarg ( k, arg )
       character*(*) arg
       function iargc ()

DESCRIPTION
       The statement call getarg( k , arg ) gets the kth command-line argument
       and puts it into arg.

       The 0th argument is the command name.

       The function iargc returns the argument count, which is	the  index  of
       the last command-line argument.

EXAMPLE
       demo% cat tesargs.f
	    character argv*10
	    integer i, iargc, m
	    m = iargc()
	    do i = 1, m
		 call getarg ( i, argv )
		 write( *, '( i2, 1x, a )' ) i, argv
	    end do
	    end
       demo % a.out first second last
	1 first
	2 second
	3 last
       demo%

FILES
       libfui.a

SEE ALSO
       execve(2), getenv(3F)

				 07 July 1995			    GETARG(3F)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net