Wikipedia "Main function"

If you want to link to that page now, you have to link to this version:
https://en.wikipedia.org/w/index.php?title=Main_function&oldid=579287652#C_and_C.2B.2B

The current page redirects to https://en.wikipedia.org/wiki/Entry_point which excludes the content of the original article. Some sort of merge happened.
closed account (9jNRX9L8)
Am I missing something? Why did you even post this.
People often link to that Wikipedia article when explaining the declaration of the main function. Unfortunately some people decided it should be merged with another article and in the process of the merge the information we referred to was lost. So, I've posted the link to the most recent revision before the page got turned into a redirect.
Why don't people ever talk about this:
1
2
3
4
5
6
7
#include <iostream>

int main( int argc, char *argv[], char *env[] )
{
  while ( *env ) std::cout << *env++ << '\n';
  return 0;
}

http://ideone.com/priTm1
Last edited on
closed account (3hM2Nwbp)
@Lowest0ne - My guess would be because such things are (allowed to be) implementation defined, but not required.

*On the same track as system(), though not nearly as..."quirky".
Last edited on
Topic archived. No new replies allowed.