2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 IARGC --- Get the number of command line arguments
9 **************************************************
11 .. index:: IARGC, command-line arguments, command-line arguments, number of, arguments, to program
15 ``IARGC`` returns the number of arguments passed on the
16 command line when the containing program was invoked.
19 The number of command line arguments, type ``INTEGER(4)``.
28 .. code-block:: fortran
39 GNU Fortran 77 compatibility subroutine:
41 Fortran 2003 functions and subroutines:
43 :ref:`GET_COMMAND_ARGUMENT`,
44 :ref:`COMMAND_ARGUMENT_COUNT`