The longjmp function restores the state which was previously stored in env by the setjmp function. The retval argument specifies the value to return from the setjmp function. The longjmp and setjmp functions may be used to execute a non-local goto. They are usually utilized to pass control to an error recovery routine. Local variables and function arguments are restored only if declared with the volatile attribute. |