Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!nrl-cmf!cmcl2!beta!unm-la!unmvax!nmtsun!hydrovax From: hydrovax@nmtsun.nmt.edu (M. Warner Losh) Newsgroups: comp.lang.c Subject: Re: exit(-1) Message-ID: <1247@nmtsun.nmt.edu> Date: 23 Jan 88 04:09:39 GMT References: <502@cresswell.quintus.UUCP> <6935@brl-smoke.ARPA> <1179@wjvax.UUCP> <551@cresswell.quintus.UUCP> Organization: NMT Hydrology program Lines: 22 Summary: VAX C version 2.2 In article <551@cresswell.quintus.UUCP>, ok@quintus.UUCP (Richard A. O'Keefe) writes: > > Trying several values of N in > main() { exit(N); } > and main() { return N; } > I found that *none* of them resulted in any message from DCL; > *all* of them produced a quiet exit. {But the return code was > available to DCL for inspection, and perror() does plausible things.} I have VMS version 4.4, running C version 2.2. When I do an exit(0);, I get the message that I posted. (The No message for this message message). In the 2.2 manual, section 22.1.2, it says that the value is returned to DCL "and a message is displayed". I guess that Version 2.3 fixes this problem. -- bitnet: lush@nmt.csnet M. Warner Losh csnet: warner%hydrovax@nmtsun uucp: ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!warner%hydrovax ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!hydrovax Warning: Hydrovax is both a machine, and an account, so be careful.