9.1.1 Command_Argument_Count_F2003 Procedure

The Command_Argument_Count_F2003 returns the number of command-line arguments used for this invocation of the executable. It is modeled after the Fortran 2003 function so that it can be replaced by that function eventually.

Calling syntax:

Integer = COMMAND_ARGUMENT_COUNT()

(This is capitalized because it is an intrinsic in Fortran 2003.)

Output variable:

 Command_Argument_Count  Returns the number of command arguments.

The Command_Argument_Count_F2003 code listing contains additional documentation.



Michael L. Hall