void longjmp(jmp_buf environment
Causes the environment to be restored from a
call where the environment variable had been saved. It causes
execution to goto the
setjmp location as if
setjmp had returned the value of the
variable value. The variable value cannot be zero.
However, if zero is passed, then 1 is replaced. If the function
setjmp was called has terminated, then
the results are undefined.
The output from this program should be:
printf("Reached this point from a longjmp with value=%d.\n",value);
void some_function(jmp_buf env_buf)
Reached this point from a longjmp with value=5.