Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - setjmp http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   setjmp

   Usage
   #include <setjmp.h>
   int setjmp(jmp_buf env);

   Description
   Coupled with longjmp, setjmp allows a goto between functions. They are
   good  for dealing with errors or interrupts encountered  in  low-level
   subroutines of a program.

   setjmp  saves the stack environment in the variable env for later  use
   by  longjmp.  longjmp  restores the environment  previously  saved  by
   setjmp in jmp_buf and is pointed to by envp. The return value is  that
   of setjmp.

   NOTE: The environment must have been previously saved using setjmp  by
   a function that is currently active, and which is the same function or
   a parent of the function containing the call to longjmp.

   See longjmp for more information.

   Return Value
   setjmp returns a 0.

   Example
   See longjmp


See Also: longjmp

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson