Skip to content
UPEEC

setjmp and longjmp

Save a point in execution and jump back to it later — non-local error recovery.

Advanced
Comments 0

Skips normal cleanup and is error-prone; local variables modified after setjmp must be volatile. Rarely needed outside special runtimes.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.