Document Number: N3936
Date: 2014-03-02
Revises: N3797
Reply to: Stefanus Du Toit
Thalmic Labs
cxxeditor@gmail.com
Working Draft, Standard for Programming
Language C++
Цитата
3.6.1 Main function
...
as the type of main (8.3.5). In the latter form, for purposes of exposition, the first function parameter is
called argc and the second function parameter is called argv, where argc shall be the number of arguments
passed to the program from the environment in which the program is run. If argc is nonzero these arguments
shall be supplied in argv[0] through argv[argc-1] as pointers to the initial characters of null-terminated
multibyte strings (ntmbs s) (17.5.2.1.4.2) and argv[0] shall be the pointer to the initial character of a
ntmbs that represents the name used to invoke the program or "".
...
Document Number: N4659
Date: 2017-03-21
Revises: N4640
Reply to: Richard Smith
Google Inc
cxxeditor@gmail.com
Working Draft, Standard for Programming
Language C++
Цитата
6.6.1 main function
...
as the type of main (11.3.5). In the latter form, for purposes of exposition, the first function parameter is
called argc and the second function parameter is called argv, where argc shall be the number of arguments
passed to the program from the environment in which the program is run. If argc is nonzero these arguments
shall be supplied in argv[0] through argv[argc-1] as pointers to the initial characters of null-terminated
multibyte strings (ntmbs s) (20.4.2.1.5.2) and argv[0] shall be the pointer to the initial character of a
ntmbs that represents the name used to invoke the program or "".
...