C
chris
I am writing a C++ program for which the guts of the program is about
100,000 lines of straight c code.
This c code is peppered with hundreds of exit() statements which,
unfortunately, cause a pretty ungraceful
termination of my program. Someone likened the exit() to be like
pulling the plug on an appliance when used within C++. Without
changing each instance of exit to something else, I would like to
change
things so that my program will at least terminate normally, maybe with
a concilliatory message. I am
basically a c programmer, not really at home in the C++ world. Any
advice would be appreciated.
Chris
100,000 lines of straight c code.
This c code is peppered with hundreds of exit() statements which,
unfortunately, cause a pretty ungraceful
termination of my program. Someone likened the exit() to be like
pulling the plug on an appliance when used within C++. Without
changing each instance of exit to something else, I would like to
change
things so that my program will at least terminate normally, maybe with
a concilliatory message. I am
basically a c programmer, not really at home in the C++ world. Any
advice would be appreciated.
Chris