Re: EXIT_SUCCESS guaranteed to always be zero?

From: Dan Pop (
Date: 11/27/03

Date: 27 Nov 2003 11:54:47 GMT

In <> Zack Weinberg <> writes:

>You may be wondering 'why define EXIT_SUCCESS at all if 0 has the same
>effect?' It is presumably for symmetry with EXIT_FAILURE.

EXIT_SUCCESS is the C89 way of doing it, while 0 is obviously supported
because it was the (most common) existing practice. Things would
have been much clear if C89 deprecated the usage of 0 for this purpose.


Dan Pop
DESY Zeuthen, RZ group