macro
setjmp
<csetjmp>
int setjmp ( jmp_buf env );
Save calling environment for long jump
This function with functional form takes its argument,
env, and fills its content with information about the environment state in that point in the code to be able to restore that state in a later call to
longjmp.
Parameters
- env
- Object of type jmp_buf where the environment information is stored
Return Value
This macro may return more than once. A first time, on its direct invocation, in this case it always returns zero.
When
longjmp is called with the information set to
env, the macro returns again; this time it returns the value passed to
longjmp as second argument.
See also
- longjmp
- Long jump (function)
- jmp_buf
- Type to hold information to restore calling environment (type)