Orchid XP v8 <voi### [at] dev null> wrote:
> >> There was an entry over at the Daily WTF in which someone posted code,
> >> written by another person, containing this:
> >>
> >> #define TRUE 0
> >> #define FALSE 1
> >>
> >> I swear that I am not making this up.
> >
> > Probably Unix convention?
> Ah yes - return code 0 = OK, any other code = failure.
C actually distinguishes between TRUE/FALSE and EXIT_SUCESS/EXIT_FAILURE.
They shouldn't be confused nor mixed.
--
- Warp
Post a reply to this message
|