
9 Jun
2006
9 Jun
'06
1:51 p.m.
On 6/9/06, Martin Bonner <martin.bonner@pitechnology.com> wrote:
No. They all have AT LEAST 8 bits, but there are certainly C implementations with 9-bit char and 32-bit char. I don't know if any of these have C++ compilers (but the standard certainly permits it). (You might of course decide to explicitly limit your library to 8-bit char platforms only.)
How do those C implementations handle I/O? Does fgetc actually give the next 9 or 32 bits of the file? If, for example, the sockets implementation actually filled all 9 bits in a byte on a recv, I could see that being a portability nightmare... ~ Scott McMurray