setjmp [C++ Reference]
Keywords: c,other,setjmp
Date: 2008-10-14T15:42:02-0700

## setjmp

Syntax:

        #include <csetjmp>
        int setjmp( jmp_buf envbuf );

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