I am reading about the C-coding style for embedded systems and I found the following statement:
Do not use stdbool.h library. Use 1 or 0 for true or false respectively
This statement was written in the following source: https://github.com/MaJerle/c-code-style
However, there is no explanation why to use it or any advantage/ disadvantage in adopting such style.
I would like to know if there is any advantage in using 1 or 0 instead of true or false.
char a; char b; /* Wrong */.char a, b; /* OK */... Then, when it comes to pointers, "always align asterisk to type" leading tochar* a, b;whenbshould be a pointer. Rules, eh?