Node:Non-Local Exits, Next:, Previous:Resource Usage And Limitation, 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.