Chapter 6. Nonlocal Jumps <setjmp.h>

Table of Contents
6.1. Save Calling Environment
6.2. Restore Calling Environment

The header <setjmp.h> defines the macro setjmp, and declares one function and one type, for bypassing the normal function call and return discipline.

The type declared is

jmp_buf

which is an array type suitable for holding the information needed to restore a calling environment.

6.1. Save Calling Environment

Table of Contents
The setjmp macro --