Skip to content

Home / C Coding Guidelines

This document defines the mandatory coding standards and development rules for all C code in this project.

It establishes:

  • File structure and project organization
  • Header and source file responsibilities
  • API declaration rules
  • Function structure and ordering
  • Naming conventions
  • Formatting and style requirements
  • Error handling patterns
  • Testing requirements
  • Build and tooling expectations

The goal is:

  • Clear and predictable code structure
  • Strict separation between interface and implementation
  • High readability and maintainability
  • Deterministic and testable behavior
  • Consistent formatting across the entire codebase
  • Production-ready, reviewable code at all times

All contributors are expected to follow these guidelines without exception.