News for hackers. Stuff that matters.
Re:Main is usually a function, so when is it not? (2015) by user5994461 on Sunday September 10, 2017 @10:32AM (#15212351)
Calling conventions are as much a standard as the C spec.

The main() is called like a regular function, by the system thing that executes programs.

Depending on the compiler and the flags, the main() is not the real entry point of the program. It can add another entry point to do some magic, like setting the return code.

There are no comments on this comment yet.