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

The setjmp( ) macro stores the contents of the system stack in the buffer envbuf for later use by longjmp( ). It uses the header <setjmp.h>, or <csetjmp> in a C++ program.

The setjmp( ) macro returns zero upon invocation. However, longjmp( ) passes an argument to setjmp( ), and it is this value (always nonzero) that will appear to be the value of setjmp( ) after a call to longjmp( ) has occurred. See longjmp( ).

A related function is longjmp( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: