The GNU C Library - Non-Local Exits

Node: Non-Local Exits Next: Signal Handling Prev: Date and Time Up: Top

Non-Local Exits

Sometimes when your program detects an unusual situation inside a deeply nested set of function calls, you would like to be able to immediately return to an outer level of control. This section describes how you can do such non-local exits using the setjmp and longjmp functions.

Intro When and how to use these facilities.
Details Functions for nonlocal exits.
Non-Local Exits and Signals Portability issues.


Next: Signal Handling Up: Top