Re: ANSI compliance, gcc(1) and FreeBSD

2000-07-29 Thread Greg Black
> Apologies if this is the wrong list for this question but it seems the > best place to get a *definitive* answer. The best place to get a definitive answer about C is in the Standard. The best place to get a definitive answer about gcc is in the source. > In the ANSI Standard (K&R 2e, A7.14 &

Re: ANSI compliance, gcc(1) and FreeBSD

2000-07-29 Thread David Malone
On Sat, Jul 29, 2000 at 11:51:53AM +0100, Mark Ovens wrote: > In the ANSI Standard (K&R 2e, A7.14 & A7.15) it states that, in the > case of the ``&&'' operator, the right operand is evaluated only if > the left operand evaluates to non-zero, and, for ``||'', the right > operand is evaluated only

ANSI compliance, gcc(1) and FreeBSD

2000-07-29 Thread Mark Ovens
Apologies if this is the wrong list for this question but it seems the best place to get a *definitive* answer. In the ANSI Standard (K&R 2e, A7.14 & A7.15) it states that, in the case of the ``&&'' operator, the right operand is evaluated only if the left operand evaluates to non-zero, and, for