Re: Printf question.
- From: "Malcolm" <regniztar@xxxxxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 12:23:32 +0000 (UTC)
"Flash Gordon" <spam@xxxxxxxxxxxxxxxxxx> wrote
>
>> Correction: since a signed int can hold any value of type unsigned
>> char, the value in the unsigned char 'a' is promoted to type int.
>
> <annoying pedant>
> What, even on a system with CHAR_BIT==16 and sizeof(int)==1 ?
> </annoying pedant>
>
> Of course, you are only likely to find such systems in the embedded world
> where you may well not have printf.
>
But often you have vsprintf(), or you need to implement it.
The whole language does begin to break down when we push the limits of
ANSI's definition. For instance, should field-length parameters really be
size_t s?
.
- Follow-Ups:
- Re: Printf question.
- From: Jordan Abel
- Re: Printf question.
- References:
- Printf question.
- From: praeiji
- Re: Printf question.
- From: Jack Klein
- Re: Printf question.
- From: Keith Thompson
- Re: Printf question.
- From: Flash Gordon
- Printf question.
- Prev by Date: Re: Adding the ability to add functions into structures?
- Next by Date: Re: String reversing problem
- Previous by thread: Re: Printf question.
- Next by thread: Re: Printf question.
- Index(es):
Relevant Pages
|