home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / internal / 2100 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!torn!newshub.ccs.yorku.ca!yetti!cs.yorku.ca!minas
  2. From: minas@cs.yorku.ca (Minas Spetsakis)
  3. Newsgroups: comp.unix.internals
  4. Subject: Re: Question about longjmp ()
  5. Message-ID: <1639@yetti.UUCP>
  6. Date: 10 Jan 93 02:45:58 GMT
  7. Article-I.D.: yetti.1639
  8. References: <C0JpMo.1rGr@austin.ibm.com> <1993Jan9.124323.13018@csie.nctu.edu.tw>
  9. Sender: news@yetti.UUCP
  10. Distribution: world
  11. Organization: York University, Dept. of Comp. Sci. - Toronto
  12. Lines: 21
  13.  
  14.  
  15. In article <1993Jan9.124323.13018@csie.nctu.edu.tw>, cp78065@csie.nctu.edu.tw (Ji-Tzay Yang) writes:
  16. |> Sivarama Subramanian (subra@bynar.austin.ibm.com) wrote:
  17.  
  18. |> :     My question is, should the value of i change or not.
  19. |> 
  20. |>   After running the program, the value 'i' is changed, and it should be
  21. |>   changed.
  22. |> 
  23. |>   But is there any consideration for 'i' to keep its orignal value?
  24. |> 
  25.  
  26.  
  27. It all depends if i is a register. C decides what to store in a register. The
  28. register directive is only a hint.
  29.  
  30. The only way I can think that enforces i not to be a register is to have at
  31. some point in your code a &i. But then, I never tested that. Or have it global.
  32.  
  33.  
  34. Minas
  35.