home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / bug / 2650 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.7 KB  |  46 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!keinstr.UUCP!chaplin
  3. From: chaplin@keinstr.UUCP (Roger Chaplin)
  4. Subject: Re: How to use 'return' in c?
  5. Message-ID: <1992Nov6.231512.9705@keinstr.uucp>
  6. Followup-To: gnu.gcc.bug
  7. Sender: gnulists@ai.mit.edu
  8. Organization: Keithley Instruments, Cleveland, Ohio
  9. References: <1263@pascal.einstein.eds.com>
  10. Distribution: gnu
  11. Date: Fri, 6 Nov 1992 23:15:12 GMT
  12. Approved: bug-gcc@prep.ai.mit.edu
  13. Lines: 31
  14.  
  15. Rich Wenner (wenner@einstein.eds.com) wrote:
  16. : In article <1992Nov4.231347.26999@u.washington.edu> chuckb@stein.u.washington.edu (Charles Bass) writes:
  17. : :After several people wrote me on the use of EXIT_SUCCESS and
  18. : :EXIT_FAILURE  and their inability to locate those files on their
  19. : :systems I checked K&R 2ndEd for the definitive answer...
  20. : Since when is K&R2 the Standard?
  21. : :" void exit(int status)
  22. : :... How status is returned to the environment is
  23. : :implementation-dependent, but zero is taken as successful
  24. : :termination.  The values EXIT_SUCCESS and EXIT_FAILURE may also
  25. : :be used."                                              ^^^
  26. : :
  27. : :Because the word *may* is used I must assume that you either get
  28. : :it or you don't depending on your compiler/OS.
  29. : Don't assume.  RTFS, which simply states that these macros are defined in
  30. : stdlib.h.  See section 4.10.
  31.  
  32. <Sigh>.  I just retrieved and built gcc-2.3.1, and these *still* aren't
  33. in there.
  34.  
  35. Notice that followups are directed to gnu.gcc.bug.
  36.  
  37. -- 
  38. Roger Chaplin / Instruments Division Engineering / 14 million women will not
  39. chaplin@keinstr.uucp / CI$: 76307,3506          / have the right to choose -
  40. #include <disclaimer.h>                        / they have been aborted.
  41. #include "disclaimer.h" /* cover all bases */ / 
  42.  
  43.