Monday, October 31, 2016

C Library Function – setjmp

The <setjmp.h> header shall define the following function(s).

Save calling environment Functions:
env - variable to save the execution state of the program

setjmp int setjmp(jmp_buf env);

Restore calling environment Functions:
env - variable referring to the execution state of the program saved by setjmp
val - the value to return from setjmp

longjmp _Noreturn void longjmp(jmp_buf env, int val);



Related topics:
Library Functions in C   |   Standard Library in C   |   Header Files in C   |   Functions in C   |   Keywords in C   |   Data Types in C   |   Pointers in C

List of topics: C Programming

No comments:

Post a Comment