Standards, coding
styles and guidelines
Purposes of coding standards:
- avoid bugs
- increase portability
- increase readability
- improve security
The end goal is to use C in safety-related systems. Usually
this doesn’t cover coding style.
Examples:
Coding style guides cover:
- whitespace: indentation, blank lines, placing braces and
spaces
- naming: case, local vs global variables, macros,
function-like macros
- long lines, long functions: 80x24
- comment format
Examples:
Guidelines are rules plus recommendations.
Also covers style.
Examples:
More:
# #c