Quote Originally Posted by bithub View Post
In the C world, we also have a little handbook (called the C standard) which tells us what we can and what we cannot do. That standard tells us main can be defined 2 different ways:
Code:
int main(void);
int main(int argc, char* argv[]);
Three, actually:

J.5.1 Environment arguments
In a hosted environment, the main function receives a third argument, char *envp[], that points to a null-terminated array of pointers to char, each of which points to a string that provides information about the environment for this execution of the program (5.1.2.2.1).


I wouldn't recommend using *envp[], though.

Greets,
Philip