🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3256

Re: Must main return a value?

#3256
From: Steve Emmerson
Date: Sat, 29 Jun 1991 03:40
16 lines
1270 bytes
In <16577@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes:

>In article <787@taumet.com> steve@taumet.com (Stephen Clamage) writes:
>>Except that EXIT_SUCCESS need not have the value 0.  This might be
>>wrong in an ANSI environment.

>No -- while it is true that EXIT_SUCCESS might be defined as a nonzero value,
>a conforming hosted implementation must also support the exit status value 0
>as a "separate but equal" way to specify successful termination status.

In a POSIX environment, at least, EXIT_SUCCESS *is* 0.  Period.

Are there non-POSIX (or pre-POSIX) environments in which EXIT_SUCCESS is
(or was) not zero (I know about VMS)?

Steve Emmerson        steve@unidata.ucar.edu        ...!ncar!unidata!steve
Technical Details
Message-ID: <11980@ncar.ucar.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!ncar!groucho!steve
References: <7830001@hpwrce.HP.COM> <1991Jun28.043342.27540@ptcburp.ptcbu.oz.au> <787@taumet.com> <16577@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!ncar!groucho!steve
From: steve@groucho.ucar.edu (Steve Emmerson)
Newsgroups: comp.std.c
Subject: Re: Must main return a value?
Message-ID: <11980@ncar.ucar.edu>
Date: 29 Jun 91 03:40:09 GMT
References: <7830001@hpwrce.HP.COM> <1991Jun28.043342.27540@ptcburp.ptcbu.oz.au> <787@taumet.com> <16577@smoke.brl.mil>
Sender: news@ncar.ucar.edu
Organization: University Corporation for Atmospheric Research (UCAR)
Lines: 16