Caution: This version of this document is no longer maintained. For the latest documentation, see


The number of arguments passed to main()


int _argc


This global variable holds the number of arguments passed to main().

Note: This variable isn't defined in any header file. If you want to refer to it, you need to add your own extern statement.


QNX Neutrino

See also:

_argv, _auxv, getopt(), main()