J
Jorgen Grahn
I'm sitting with a C99 code base and thinking about introducing
<stdbool.h>, the 'bool' type and true/false. Anything special I
have to keep in mind?
Am I likely to end up in conflict with people who feel stdbool.h
is an abomination? More than other C99 features, that is.
My background is in C++ where I of course use bool a lot. In C I tend
to use naked ints for booleans, and 0 and 1 when I need a true or
false constant. Works well, but it's not exactly self-documenting.
/Jorgen
<stdbool.h>, the 'bool' type and true/false. Anything special I
have to keep in mind?
Am I likely to end up in conflict with people who feel stdbool.h
is an abomination? More than other C99 features, that is.
My background is in C++ where I of course use bool a lot. In C I tend
to use naked ints for booleans, and 0 and 1 when I need a true or
false constant. Works well, but it's not exactly self-documenting.
/Jorgen