Next: , Previous: CMPLX, Up: Intrinsic Procedures


8.30 COMMAND_ARGUMENT_COUNT — Argument count function

Description:
COMMAND_ARGUMENT_COUNT() returns the number of arguments passed on the command line when the containing program was invoked.
Option:
f2003, gnu
Class:
non-elemental function
Syntax:
I = COMMAND_ARGUMENT_COUNT()
Arguments:

None

Return value:
The return value is of type INTEGER(4)
Example:
          program test_command_argument_count
              integer :: count
              count = command_argument_count()
              print *, count
          end program test_command_argument_count