-8

jmp_buf is used in which situation durinf C Programming.

jmp_buf is what? I mean is it Keyword/data type ??

Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
Naveen AH
  • 23
  • 5

1 Answers1

1

jmp_buf is a type to hold information to restore calling environment This is an array type capable of storing the information of a calling environment to be restored later. Refer this

This information is filled by calling macro setjmp and can be restored by calling function longjmp.

An example of the same is shown here .

Community
  • 1
  • 1