lua-users home
lua-l archive

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


On Mon, Sep 5, 2011 at 12:25 AM, Josh Simmons <simmons.44@gmail.com> wrote:
> and there's no concept of a byte in C.

No. There is. Citing from the C89 Draft:

 * Byte --- the unit of data storage in the execution environment
   large enough to hold any member of the basic character set of the
   execution environment.  It shall be possible to express the address of
   each individual byte of an object uniquely.  A byte is composed of a
   contiguous sequence of bits, the number of which is
   implementation-defined.  The least significant bit is called the
   low-order bit; the most significant bit is called the high-order bit.

C99:
byte
addressable unit of data storage large enough to hold any member of
the basic character
set of the execution environment

Both then distinguish between single-byte and multi-byte characters.