Portability Function: Returns the index of the last command-line argument.
Module: USE DFPORT
Syntax
Results:
The result is of type INTEGER(4).
The result is the index of the last command-line argument.
For example, IARGC returns 3 for the command-line
invocation of PROG1 -g -c -a
.
IARGC returns a value that is 1 less than that returned by NARGS. The command is not included in the index count returned by IARGC.
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
See Also: NARGS
Example
use dfport
integer(4) no_of_arguments
no_of_arguments = IARGC ( )
print *, 'total command line arguments are ', no_of_arguments