最近发现运行c/c++程序时,总是在main函数结束的时候不是立即结束运行,而是调用了另外的东西
mainret = main(argc, argv, envp);
#endif /* WPRFLAG */
#endif /* _WINMAIN_ */
/*
* Note that if the exe is managed app, we don't really need to
* call exit or _c_exit. .cctor should be able to take care of
* this.
*/
if ( !managedapp )
exit(mainret);
这究竟是何原因呢?待研究。标记一下