Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!bu-cs!bzs From: bzs@bu-cs.BU.EDU (Barry Shein) Newsgroups: comp.lang.c Subject: Re: ANSI C -- miscellaneous suggestions Message-ID: <2985@bu-cs.BU.EDU> Date: Wed, 17-Dec-86 19:05:23 EST Article-I.D.: bu-cs.2985 Posted: Wed Dec 17 19:05:23 1986 Date-Received: Thu, 18-Dec-86 04:09:30 EST Organization: Boston U. Comp. Sci. Lines: 14 >Regarding the requirement that exit(0) be success -- this will break a lot >of VMS C programs, which use 1 for success and 0 for "undefined error" >(I think -- I'm not a big VMS fan...) > > Wayne There's no reason that the run-time support for VMS/C can't return 1 to the O/S if the program exits 0. Unfortunately, there's really no other resolution. Unix and IBM systems both treat zero exits as success, lord knows why VMS decided to be different, but the problem is not a problem, the O/S can be handed whatever's correct. -Barry Shein, Boston University