[12491] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: 7.7 sun ucb library RSP setjmp

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Sun Aug 28 11:14:50 1994

From: epeisach@MIT.EDU
Date: Sun, 28 Aug 1994 11:14:45 -0400
To: bugs@MIT.EDU
Cc: rel-eng@MIT.EDU, op@MIT.EDU


Oops, wrong program included - here is the proper one....

#include <stdio.h>
#include <setjmp.h>

struct foo {
	char a[10];
	jmp_buf foo;
	char b[10];
} foo;

main()
{
	foo.b[9]=1;
	foo.b[0]=1;
	foo.a[0]=1;
	foo.a[9]=1;

	setjmp(&foo.foo);
	printf("Hello %x\n", foo.b[0]);

}

home help back first fref pref prev next nref lref last post