Restores the context, previously saved by setjmp.
#include <setjmp.h> void longjmp (jmp_buf context, int value);
context
value
The previous call to setjmp causes the current context to be saved in context. A subsequent call to longjmp restores the context and returns control to the point immediately following the corresponding setjmp call. Execution resumes as if value had just been returned by setjmp.
The values of all local variables (except register variables) that are accessible to the routine receiving control contain the values they had when longjmp was called. The values of register variables are unpredictable.
Observe these restrictions when using longjmp:
None.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/setjmp.h | setjmp.h | clib.lib |