home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!bynar.austin.ibm.com!subra
- From: subra@bynar.austin.ibm.com (Sivarama Subramanian)
- Subject: Question about longjmp ()
- Sender: news@austin.ibm.com (News id)
- Message-ID: <C0JpMo.1rGr@austin.ibm.com>
- Date: Fri, 8 Jan 1993 17:23:12 GMT
- Reply-To: subra@bynar.austin.ibm.com (Sivarama Subramanian)
- Organization: IBM Austin, TX
- Lines: 19
-
- Hi folks,
- I have the following code segment.
- main ()
- {
- int i = 0;
- jmp_buf buf;
- setjmp (buf);
- printf ("%d\n", i);
- if ( i == 1 )
- exit;
- i = 1;
- longjmp (buf, 1);
- }
- My question is, should the value of i change or not.
-
- Thank you
-
- subra
-
-