Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!UICVM!U23405 From: U23405@UICVM (Michael J. Steiner) Newsgroups: comp.lang.c Subject: Re: Any way to catch exit()? Message-ID: <8808261432.AA11635@ucbvax.Berkeley.EDU> Date: 25 Aug 88 00:37:50 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 The easiest way to do some cleaning up when exiting your program would probably be to call a special function that would do the cleaning up, with the last statement of that function being exit(), like this: void my_exit() { /* Clean up */ ... exit(); } If this isn't what you're talking about, please tell me. Michael Steiner Email: U23405@UICVM.BITNET