Nonlocal Jumps <setjmp.h>

Top  Previous  Next

These functions allow you to save the current context of the program, and subsequently to return to it.

 

The header defines a type jmp_buf, which holds all the information necessary to recreate the context.

 


longjmp

returns to the context saved by setjmp


setjmp

saves the context of the calling function for a subsequent longjmp call