Re: EXIT_SUCCESS guaranteed to always be zero?

From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 11/27/03


Date: 27 Nov 2003 11:54:47 GMT

In <87vfp6uvq7.fsf@egil.codesourcery.com> Zack Weinberg <zack@codesourcery.com> 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

-- 
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de