4 ms·
You can just include stdbool.h Works since C99
by Alifatisk 3y ago
You can just include stdbool.h
Works since C99
- Gibbon1 3y agoAlways irked me they created an include for just that instead of sticking it in stdint.h
- DerekL 3y agoProbably because some code already defines “bool”, “true”, and “false”, so adding those to an existing header would break it.
- c0balt 3y agoI know, in my university tasks however we were not allowed to include additional files, like stdbool.h. it has become a habit afterwards.