delorie.com/djgpp/doc/libc/libc_135.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__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 function that spawns a child program, when you don't want to handle signals generated while the child runs (by default, those signals are also passed to the parent).

Portability

ANSI/ISO C No
POSIX No

Example

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


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004