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 318 of 1,725    |
|    Wilfred van Velzen to andrew clarke    |
|    Re: OT: atexit()    |
|    18 Nov 12 16:22:01    |
   
   Hi,   
      
   On 18 Nov 12 01:32, andrew clarke wrote to Wilfred van Velzen:   
    about: "OT: atexit()":   
      
    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() ...   
      
    ac> Ah. Of course if your program has multiple exit points outside of main(),   
    ac> that code will never be called. That's why atexit() is useful :)   
      
   I was wondering why you used it in this "complex" way, but now I know. ;)   
      
   I hardly use exit() anymore. When I need to "breakout" of routines I use   
   exceptions, and catch them somewhere, or near the end of main(), when it's a   
   fatal one...   
      
   Bye, Wilfred.   
      
      
   --- FMail-W32-1.64-B20111120   
    * Origin: Amiga Offline BBS Lisse (2:280/464)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca