Re: Portable way to printf() a size_t instance



Keith Thompson wrote:
>
> Lawrence Kirby <lknews@xxxxxxxxxxxxxxx> writes:
> > On Sun, 12 Jun 2005 15:57:46 +0000, Keith Thompson wrote:

> >> I think it's only potentially undefined.
> >
> > In the context of comp.lang.c that makes it undefined.
>
> The term "undefined behavior" is defined by the standard, not by the
> newsgroup.

Potentially undefined matches the meaning of undefined by the standard.

A program that prints the value of CHAR_BIT has implementation
defined behavior.

A program that only crashes when CHAR_BIT equals eight,
is different from a program with implementation defined behavior.

--
pete
.



Relevant Pages