[cfe-dev] On sizeof char, bytes, and bits in the C99 standard

Sebastian Redl sebastian.redl at getdesigned.at
Fri Jan 2 08:57:25 PST 2009


Török Edwin wrote:
> On 2009-01-02 17:50, Sebastian Redl wrote:
>   
>> You're wrong. 7.8.1.1p3 says that the exact forms are optional. An
>> implementation where CHAR_BITS is > 8 cannot provide (u)int8_t, but is
>> nevertheless conforming.
>>     
>
> Ok, so I may assume that on any POSIX compliant platform CHAR_BITS is 8?
> (POSIX requires (u)int8_t:
> http://www.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html)
>   
That's a valid interpretation. Another is that it's an oversight. :-) I
don't know.

Sebastian



More information about the cfe-dev mailing list