4. Uses 2-character tabs and 2-character indentations
5. Uses 2-spaces as indentation or a tab if it's required (for example: Makefiles)
5. Uses lower-case function and variable names
6. Uses lower-case function and variable names
6. Avoids the use of `!` and uses positive conditionals wherever possible (e.g., `if (foo == 0)` instead of `if (!foo)`, and `if (foo)` instead of `if (foo !=0)`)
7. Avoids the use of `!` and uses positive conditionals wherever possible (e.g., `if (foo == 0)` instead of `if (!foo)`, and `if (foo)` instead of `if (foo !=0)`)
8. Use code like array[index + 0] if you also need to do array[index + 1], to keep it aligned
You can use GNU Indent to help assist you with the style requirements:
You can use GNU Indent to help assist you with the style requirements: