Next: COMPILER_OPTIONS, Previous: CO_SUM, Up: Intrinsic Procedures [Contents][Index]
COMMAND_ARGUMENT_COUNT
— Get number of command line argumentsCOMMAND_ARGUMENT_COUNT
returns the number of arguments passed on the
command line when the containing program was invoked.
Fortran 2003 and later
Inquiry function
RESULT = COMMAND_ARGUMENT_COUNT()
None |
The return value is an INTEGER
of default kind.
program test_command_argument_count integer :: count count = command_argument_count() print *, count end program test_command_argument_count