IARGC

9.130 IARGC — Get the number of command line arguments

Description:
IARGC returns the number of arguments passed on the command line when the containing program was invoked.

This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the COMMAND_ARGUMENT_COUNT intrinsic defined by the Fortran 2003 standard.

Standard:
GNU extension
Class:
Function
Syntax:
RESULT = IARGC()
Arguments:
None.
Return value:
The number of command line arguments, type INTEGER(4).
Example:
See GETARG
See also:
GNU Fortran 77 compatibility subroutine: GETARG

Fortran 2003 functions and subroutines: GET_COMMAND, GET_COMMAND_ARGUMENT, COMMAND_ARGUMENT_COUNT

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gfortran/IARGC.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部