Must main return a value?

Doug Gwyn gwyn at smoke.brl.mil
Sat Jun 29 05:40:16 AEST 1991


In article <787 at taumet.com> steve at 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.



More information about the Comp.std.c mailing list