On May 21, 10:04 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > Yes, C defines "char" to be one byte, but it doesn't define the > size of a "byte" other than it's at least big enough to hold > one character (or something like that). In practice, a byte is > pretty much guaranteed to be at least 8 bits.
If you're discussing standard C, you can omit "in practice" and "pretty much". CHAR_BITS is required to be at least 8 by the ANSI/ISO C Standard. > But, on some targets a "byte" is 16 bits, and on others a byte > is 32 bits. Yep, or 9 bits or 36 bits, or anything >= 8. -- http://mail.python.org/mailman/listinfo/python-list