Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    MAKENL_NG    |    MakeNL Next Generation.    |    1,725 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 316 of 1,725    |
|    andrew clarke to Wilfred van Velzen    |
|    OT: atexit()    |
|    18 Nov 12 01:32:38    |
   
   16 Nov 12 16:44, you wrote to me:   
      
    ac>> (For text apps, to stop the console window from immediately   
    ac>> closing when the program exits I call atexit() and point it to a   
    ac>> function that calls getchar(). Also useful for other IDEs.)   
      
    WV> I do something similar, I put:   
      
    WV> #ifdef _DEBUG   
    WV> printf("\n[Press any key to continue]\n");   
    WV> getch();   
    WV> #endif   
      
    WV> At the end of main() ...   
      
   Ah. Of course if your program has multiple exit points outside of main(), that   
   code will never be called. That's why atexit() is useful :)   
      
   --- GoldED+/BSD 1.1.5-b20110223-b20110223   
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca