home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!caen!rphroy!einstein!wenner
- From: wenner@einstein.eds.com (Rich Wenner)
- Newsgroups: comp.lang.c
- Subject: Re: How to use 'return' in c?
- Message-ID: <1263@pascal.einstein.eds.com>
- Date: 5 Nov 92 15:00:22 GMT
- References: <1992Oct29.025437.9289@nuscc.nus.sg> <1992Nov2.203701.162@ipact.com> <1992Nov4.231347.26999@u.washington.edu>
- Organization: Electronic Data Systems
- Lines: 24
-
- In article <1992Nov4.231347.26999@u.washington.edu> chuckb@stein.u.washington.edu (Charles Bass) writes:
- :After several people wrote me on the use of EXIT_SUCCESS and
- :EXIT_FAILURE and their inability to locate those files on their
- :systems I checked K&R 2ndEd for the definitive answer...
-
- Since when is K&R2 the Standard?
-
- :" void exit(int status)
- :... How status is returned to the environment is
- :implementation-dependent, but zero is taken as successful
- :termination. The values EXIT_SUCCESS and EXIT_FAILURE may also
- :be used." ^^^
- :
- :Because the word *may* is used I must assume that you either get
- :it or you don't depending on your compiler/OS.
-
- Don't assume. RTFS, which simply states that these macros are defined in
- stdlib.h. See section 4.10.
-
- --
- Rich Wenner | Subject and verb always has to agree.
- wenner@csid.gmeds.com | Consult a dictionary frequently to avoid mispelling.
- | Hopefully, you will use words correctly,
- #include <stddisclaim.h> | irregardless of how others use them.
-