Currently At: Programming Reference > C Reference > Other standard C functions > setjmp()

setjmp()


Syntax:
#include <setjmp.h>
int setjmp( jmp_buf envbuf );


Description:
The setjmp() function saves the system stack in envbuf for use by a later call to |longjmp()|. When you first call setjmp(), its return value is zero. Later, when you call |longjmp()|, the second argument of |longjmp()| is what the return value of setjmp() will be. Confused? Read about |longjmp()|.

Related Topics:
longjmp()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions