Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.std.c Subject: Re: exit codes (was: Identifier length?) Message-ID: <678@sdrc.UUCP> Date: 22 Mar 89 22:17:59 GMT References: <627@maxim.ERBE.SE> <1989Mar16.171213.21210@utzoo.uucp> <6268@bsu-cs.UUCP> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 19 In article <6268@bsu-cs.UUCP>, dhesi@bsu-cs.UUCP (Rahul Dhesi) writes: > Existing programs almost never use anything other than a return code of > 0, 1, or 2. It almost doesn't matter what the standard says about the > number of bits used. In fact the standard could simply have said: > "...if the value of the exit code is not 0, 1, or 2, it is interpreted > in an implementation-dependent manner". That would not affect more > than about 0.2% of existing C programs. The current standard affects > all of them. No, Rahul, it doesn't affect all of them. Those of us who have been writing REALLY portable code have been using exit(SUCCESS) and exit(FAILURE) all along. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@sdrc.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150 AT&T: (513) 576-2070 "When all else fails, read the directions."