Re: Will EXIT_SUCCESS and EXIT_FAILURE have the same value on all platforms?

From: pete (pfiland_at_mindspring.com)
Date: 08/31/04


Date: Tue, 31 Aug 2004 12:04:37 GMT

Keith Thompson wrote:
>
> pete <pfiland@mindspring.com> writes:
> > Dan Pop wrote:
> > > What is the value of __STDC__ in C89?
> >
> > The only reference to __STDC__ in my copy of the
> > C89 last public draft, is in a footnote about undefined behavior.
>
> Interesting. I have two plain-text copies of (drafts of?) the ANSI
> C89 standard:
>
> http://members.optushome.com.au/sbiber/stuff/ansic89.txt.bz2
> http://danpop.home.cern.ch/danpop/ansi.c
>
> in both of them, section 3.8.8 (corresponding to section 6.8.8 of the
> ISO C90 standard) is messed up. It looks like the plain-text versions
> were generated from some other format, and the conversion was confused
> by some (but not all) instances of __FOO__.
>
> The ISO C90 standard, section 6.8.8, says:
>
> __STDC__ The decimal constant 1,
> intended to indicate a conforming implementation.
>
> I presume a correct copy of the C89 standard would say the same thing.

Thank you.

-- 
pete