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. |