All pastes #2057547 Raw Edit

Someone

public text v1 · immutable
#2057547 ·published 2011-05-12 18:44 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>


void a();
void b();
void c();

jmp_buf buf1,buf2,buf3;


void a()
{	
	b();
	longjmp(buf1,1);

}

void b()
{
	c();	
}


void c()
{
     if(setjmp(buf1)==0)
        return;
    else 
        printf("back \n");  
}




int main()
{
	a();
	return 0;
}