mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
87ea19cac2
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@435 f6dd340e-d3f9-0310-b409-bdd246841980
11 lines
637 B
Text
11 lines
637 B
Text
In bf(C++) there are but two variants of the function ti(main):
|
|
tt(int main()) and tt(int main(int argc, char **argv)). Notes:
|
|
itemization(
|
|
it() The return type of tt(main) is tt(int), and em(not) tt(void).
|
|
it() It is em(not) required to use an explicit tt(return) statement at the
|
|
end of tt(main). If omitted tt(main) returns 0.
|
|
it() The `third tt(char **envp) parameter' is not defined by the bf(C++)
|
|
standard and should be avoided. Instead, the global variable hi(environ)
|
|
tt(extern char **environ) should be declared providing access to the program's
|
|
environment variables. Its final element has the value 0.
|
|
)
|