Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
krollew
on June 22, 2012
|
parent
|
context
|
favorite
| on:
The Little C Function From Hell
It's standard behaviour or one compiler does so? Outside preprocessor char has another meaning? Thanks anyway.
cperciva
on June 22, 2012
[–]
Outside of the preprocessor, the char type is a one-byte integer (whether it's signed or not is implementation-defined).
krollew
on June 22, 2012
|
parent
[–]
So the good solution is make a test that finds it out, for example in configuration script and set proper preprocessor constant and test that constant instead.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: