IARGC(3f)

DESCRIPTION
IARGC returns the number of arguments passed on the command line when the containing program was invoked.

This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the COMMAND_ARGUMENT_COUNT intrinsic defined by the Fortran 2003 standard.

STANDARD
GNU extension

CLASS
Function

SYNTAX
RESULT = IARGC()

ARGUMENTS
None.

RETURN VALUE
The number of command line arguments, type INTEGER(4).

EXAMPLE
See GETARG

SEE ALSO
GNU Fortran 77 compatibility subroutine: GETARG

Fortran 2003 functions and subroutines: GET_COMMAND, GET_COMMAND_ARGUMENT, COMMAND_ARGUMENT_COUNT

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).