Possible Duplicate:
What are the valid signatures for C's main() function?
What are the different valid prototypes of 'main' function?
Are there some non-standard prototypes also supported only by a few vendors?
Possible Duplicate:
What are the valid signatures for C's main() function?
What are the different valid prototypes of 'main' function?
Are there some non-standard prototypes also supported only by a few vendors?
The full prototype allowed by gcc is:
but
envp
is rarely used. Omittingargc
andargv
is also considered acceptable.The C standard (§ 5.1.2.2.1) defines two entry point prototypes:
or
Other than that, every OS has its own additional non-standard entry points. WinMain, etc.