# Standard library header <csetjmp>

> C++ Atlas: `cppatlas.com/w/cpp/header/csetjmp` | Source: https://en.cppreference.com/w/cpp/header/csetjmp | Domain: Standard headers

This header was originally in the C standard library as <setjmp.h>.

## Official Specification Summary (cppreference)

This header was originally in the C standard library as `<setjmp.h>`.

This header is part of the program support library.

**Types**

- `jmp_buf`: execution context type (typedef)

**Macros**

- `setjmp`: saves the context (function macro)

**Functions**

- `longjmp`: jumps to specified location (function)

### Synopsis

```cpp
namespace std {
  using jmp_buf = /* see description */ ;
  [[noreturn]] void longjmp(jmp_buf env, int val);
}
#define setjmp(env) /* see description */
```

---
Attribution: content from https://en.cppreference.com/w/cpp/header/csetjmp (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.