]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/doc/gfortran/intrinsic-procedures/iargc.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / intrinsic-procedures / iargc.rst
1 ..
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.
5
6 .. _iargc:
7
8 IARGC --- Get the number of command line arguments
9 **************************************************
10
11 .. index:: IARGC, command-line arguments, command-line arguments, number of, arguments, to program
12
13 .. function:: IARGC()
14
15 ``IARGC`` returns the number of arguments passed on the
16 command line when the containing program was invoked.
17
18 :return:
19 The number of command line arguments, type ``INTEGER(4)``.
20
21 Standard:
22 GNU extension
23
24 Class:
25 Function
26
27 Syntax:
28 .. code-block:: fortran
29
30 RESULT = IARGC()
31
32 Arguments:
33 None
34
35 Example:
36 See :ref:`GETARG`
37
38 See also:
39 GNU Fortran 77 compatibility subroutine:
40 :ref:`GETARG`
41 Fortran 2003 functions and subroutines:
42 :ref:`GET_COMMAND`,
43 :ref:`GET_COMMAND_ARGUMENT`,
44 :ref:`COMMAND_ARGUMENT_COUNT`