Re:The Little C Function From Hell
by krollew on Thursday June 21, 2012 @06:32AM
(#4141277)
So what they are? Why it doesn't work? Your quote don't clarify.
[ Parent
| on HN ]
Your "char" in a preprocessor directive is either a uintmax_t or an intmax_t. Either way, it's going to end up as #if 128 > 127 or #if 256 > 255 -- so the first case will always end up being included.
It's standard behaviour or one compiler does so? Outside preprocessor char has another meaning? Thanks anyway.
Outside of the preprocessor, the char type is a one-byte integer (whether it's signed or not is implementation-defined).