cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : C Library : csetjmp
 
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
C Library
cassert (assert.h)
cctype (ctype.h)
cerrno (errno.h)
cfloat (float.h)
climits (limits.h)
clocale (locale.h)
cmath (math.h)
csetjmp (setjmp.h)
csignal (signal.h)
cstdarg (stdarg.h)
cstddef (stddef.h)
cstdio (stdio.h)
cstdlib (stdlib.h)
cstring (string.h)
ctime (time.h)
csetjmp (setjmp.h)
jmp_buf
longjmp
setjmp

-

csetjmp (setjmp.h) header

Non local jumps

The tools provided through this header file allow the programmer to bypass the normal function call and return discipline, by providing the means to perform jumps preserving the calling environment.

The header provides, a function, a macro with functional form and a specific type:

longjmp Long jump (function)
setjmp Save calling environment for long jump (macro)
jmp_buf Type to hold information to restore calling environment (type)
© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us