Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>__djgpp_exception_toggle</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
__djgpp_exception_toggle
========================

Syntax
------


     #include <sys/exceptn.h>
     
     void __djgpp_exception_toggle(void);

Description
-----------

This function is automatically called when the program exits, to restore
handling of all the exceptions to their normal state.  You may also call
it from your program, around the code fragments where you need to
temporarily restore *all* the exceptions to their default handling.
One example of such case might be a call to a library functions that
spawn child programs, when you don't want to handle signals generated
while the child runs (by default, those signals are also passed to the
parent).

Example
-------


       __djgpp_exception_toggle();
       system("myprog");
       __djgpp_exception_toggle();


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson