Re: EXIT_SUCCESS guaranteed to always be zero?

From: Grumble (invalid_at_kma.eu.org)
Date: 11/27/03


Date: Thu, 27 Nov 2003 15:07:33 +0100

James Kuyper wrote:
> Implementation-defined is a subset of "unspecified". The alternatives
> for "unspecified" are not required to be "few", the only requirement is
> that there be at least two of them. In this case, EXIT_SUCCESS can be
> defined as expanding into any string of characters that constitutes an
> integer constant expression that can be safely converted to an int; the
> expression's value need not itself be within the valid range of an int.
> There is a discrete infinity of such expressions, which becomes finite,
> but still huge, if you put an upper limit on the length of that
> character string.

I think you should lay off the -pedantic flag for a while :-þ



Relevant Pages

  • Re: code critique
    ... consisting of the ASCII encodings of the indivdual characters. ... The answer won't hold in a unsigned long long int. ... Should we read the string as the ...
    (comp.programming)
  • Re: Is this code totaly a shit?
    ... | void UppStrg(char *Low, char *Upp, int cnt); ... whitespace-delimited string. ... You're also assuming that the representations of the characters ...
    (comp.lang.c)
  • Re: How to sscanf return integer only
    ... This version uses 'long int' and accepts ... characters if you just want to accept positive numbers. ... string that are in the "allow" string, this must be the same as the ... The strtol function will skip leading whitespace and attempt to convert ...
    (comp.lang.c)
  • Re: How to sscanf return integer only
    ... This version uses 'long int' and accepts ... characters if you just want to accept positive numbers. ... string that are in the "allow" string, this must be the same as the ... The strtol function will skip leading whitespace and attempt to convert ...
    (comp.lang.c)
  • Re: for and arrays
    ... 'unsigned int', 'if', etc. ... then your first answer would need to have the string ... The line above creates an array of 7 characters only. ... The array whose starting address you have passed is not a string. ...
    (comp.lang.c)