delorie.com/djgpp/doc/libc/libc_546.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <setjmp.h> void longjmp(jmp_buf env, int val); |
This function reverts back to a CPU state that was stored in env
by setjmp
(see section setjmp). The state includes all CPU registers,
so any variable in a register when setjmp
was called will be
preserved, and all else will be indeterminate.
The value passed as val will be the return value of setjmp
when it resumes processing there. If val is zero, the return
value will be one.
This function does not return.
ANSI/ISO C | C89; C99 |
POSIX | 1003.2-1992; 1003.1-2001 |
jmp_buf j; if (setjmp(j)) return; do_something(); longjmp(j, 1); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |