setjmp function — Establishes nonlocal label
int setjmp(jmp_buf env);
The setjmp
function stores
the current execution environment in its argument so that the
environment can be restored by a call to longjmp
. The first time setjmp
is called, it returns 0
. When longjmp
is called, setjmp
returns the val
argument that was passed to longjmp
; that value is guaranteed to be
nonzero.