Behaviour of setjmp/longjmp and registers

Guy Harris guy at auspex.UUCP
Sat Jan 21 05:05:28 AEST 1989


>What does the ANSI standard say about this?

The May 13, 1988 draft says that since "j" is of automatic storage
duration, isn't declared "volatile", and was changed between the calls
to "setjmp" and "longjmp", its value will be indeterminate after the
call to "longjmp".  Either behavior is conformant, as would be setting
"j" to 666.... 



More information about the Comp.lang.c mailing list