Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cperciva
on June 20, 2012
|
parent
|
context
|
favorite
| on:
The Little C Function From Hell
16-bit chars aren't allowed in modern versions of C -- CHAR_BIT is required to be 8.
JoachimSchipper
on June 20, 2012
[–]
Thanks for the update! (For the curious: C99 or POSIX both require CHAR_BIT == 8.)
pascal_cuoq
on June 20, 2012
|
parent
[–]
C99 only requires CHAR_BIT to be at least 8 (5.2.4.2.1:1). POSIX requires it to be exactly 8.
cperciva
on June 20, 2012
|
root
|
parent
[–]
Oops, quite right. I missed the "equal
or greater
in magnitude" line when I was reading that section.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: