INtime SDK Help
longjmp

Restores the context, previously saved by setjmp.

#include <setjmp.h>

void longjmp (jmp_buf context, int value);

Parameters

context
Context previously stored by setjmp.
value
Value to be returned to setjmp; must be non-0. If 0, the value 1 is returned to the previous setjmp call.

Remarks

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:

Return Values

None.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/setjmp.h setjmp.h clib.lib

See Also

setjmp