Re: Portable way to printf() a size_t instance
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2005 03:48:54 GMT
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
.
- Follow-Ups:
- Re: Portable way to printf() a size_t instance
- From: Keith Thompson
- Re: Portable way to printf() a size_t instance
- References:
- Portable way to printf() a size_t instance
- From: Joakim Hove
- Re: Portable way to printf() a size_t instance
- From: Chris Croughton
- Re: Portable way to printf() a size_t instance
- From: Keith Thompson
- Re: Portable way to printf() a size_t instance
- From: Lawrence Kirby
- Re: Portable way to printf() a size_t instance
- From: Keith Thompson
- Portable way to printf() a size_t instance
- Prev by Date: Re: overloaded functions in C
- Next by Date: Re: Bit twiddling
- Previous by thread: Re: Portable way to printf() a size_t instance
- Next by thread: Re: Portable way to printf() a size_t instance
- Index(es):
Relevant Pages
|