lua-users home
lua-l archive

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


Lorenzo Donati wrote:
> IIRC C standard doesn't guarantee that a char is the same size of a 
> byte, although that's almost ubiquitous. So a "char" could be not a 
> "byte" on some exotic platforms.

By definition, bytes do not necessarily consist of 8 bits. There can be
7-bit bytes or whatever. Thus I think it's OK to equate C's char to a
byte. The word "character" is quite misleading because of the wide use
of UTF-8, while "byte" sounds unambiguously.

--Gregory