crtexe.c

来源:互联网 发布:mac广州专柜地址查询 编辑:程序博客网 时间:2024/04/29 22:12

 

最近发现运行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);

 

这究竟是何原因呢?待研究。标记一下
原创粉丝点击