[−][src]Function avr_libc::setjmp
pub unsafe extern "C" fn setjmp(__jmpb: *mut _jmp_buf) -> i16
\ingroup setjmp \brief Save stack context for non-local goto.
\code #include <setjmp.h>\endcode
setjmp() saves the stack context/environment in \e __jmpb for later use by longjmp(). The stack context will be invalidated if the function which called setjmp() returns.
\param __jmpb Variable of type \c jmp_buf which holds the stack information such that the environment can be restored.
\returns setjmp() returns 0 if returning directly, and non-zero when returning from longjmp() using the saved context.