4 ms·
I genuinely forgot stdbool.h existed, I don't actually write that much C myself. My point was more around the conditionals being weakly typed around unsigned i
by nicklecompte 3y ago
I genuinely forgot stdbool.h existed, I don't actually write that much C myself.
My point was more around the conditionals being weakly typed around unsigned ints rather than a specific lack of built-ins. A lot of commenters were going into arithmetic mod 2 or philosophical issues, neither of which actually apply here.
- kevin_thibedeau 3y ago_Bool isn't part of stdbool. It's a language keyword. C23 introduces full support for bool with true and false as keywords.