|
|
1.1 root 1:
2:
3: argc C Language argc
4:
5:
6:
7:
8: Argument passed to main()
9:
10: int argc;
11:
12: argc is an abbreviation for ``argument count''. It is the tradi-
13: tional name for the first argument to a C program's main routine.
14: By convention, it holds the number of arguments that are passed
15: to main in the argument vector argv. Because argv[0] is always
16: the name of the command, the value of argc is always one greater
17: than the number of command-line arguments that the user enters.
18:
19: ***** Example *****
20:
21: For an example of how to use argc, see the entry for argv.
22:
23: ***** See Also *****
24:
25: argv, C language, envp, main()
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.