Style

Note that the following are guidelines and the most important aspect of style is consistency. Strive to keep your style consistent with the project on which you are working.

Recommended Reading

The following contain good information, some of which is repeated below, some of which is contradicted below.

File Layout

C Features

Blocks

Leading Whitespace

Functions

Variables

Keywords

Switch

Headers

User Defined Types

Line Length

Tests and Boolean Values

Handling Errors

Enums vs #define