Exceptions: Difference between revisions

Content added Content deleted
Line 39: Line 39:
=={{header|C}}==
=={{header|C}}==


The setjmp()/longjmp() functions in the C standard library header <setjmp.h> is typically used for exception handling.
The setjmp()/longjmp() functions in the C standard library header <setjmp.h> are typically used for exception handling.


===try-catch===
===try-catch===
Line 48: Line 48:
jmp_buf env;
jmp_buf env;

void foo()
void foo()
{
{