lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 05/09/2011 11.56, liam mail wrote:
On 5 September 2011 10:43, Lorenzo Donati<lorenzodonatibz@interfree.it>  wrote:
this assumption may prove wrong, since it seems that the standard doesn't
guarantee that a byte or a char can hold at least 8-bit,

C99 5.2.4.2.1
"Their implementation-defined values shall be equal or greater in
magnitude (absolute value) to those shown, with the same sign."

CHAR_BIT 8

Liam




Thank you very much for the clarification!

It's unfortunate that C standards are not freely available as other computer-related standards. I never understood why ISO make people pay for such documents. Are they actually making real money out of them? IMO it only hampers information diffusion on a standard which should be "open".


-- Lorenzo