On Mon, Nov 9, 2015 at 8:08 PM, Pickfire <pickf...@riseup.net> wrote: [SNIP] > I am not very sure why people use int instead of booleans in C. > > I think stylistic code changes can make it easier to maintain on the > early stages.
It used to be, before C99 (and newer) became as prevalent as they are today, to portably use bools, you might include code like #ifndef __bool_true_false_are_defined #ifdef _Bool #define bool _Bool #else #define bool char #endif #define true 1 #define false 0 #define __bool_true_false_are_defined 1 #endif Nowadays, including stdbool is the way to go.