rustyrussell/ccan logo

rustyrussell/ccan

Free

The C Code Archive Network

FreeFree tier
Type
Open Source

About rustyrussell/ccan

ccan is a collection of C code modules and helper utilities, known as the C Code Archive Network. It provides reusable C libraries for various tasks. The repository includes modules under ccan/ and tools under tools/. It is recommended to use tools/create-ccan-tree to add modules to projects.

Key Features

Collection of reusable C modules
Helper utilities in tools/ directory
create-ccan-tree script for adding modules to projects
Open source and free to use
Over 2,600 commits and 1.2k GitHub stars

Pros & Cons

Pros
  • Large collection of open source C modules
  • Active GitHub repository with community engagement
  • Includes helper utilities for managing module dependencies
Cons
  • Previous official website (ccodearchive.net) hijacked by domain squatters
  • No official releases or versioned packages published
  • Manual integration required for most projects

Best For

Adding reusable C code to software projectsLearning C programming patterns by exampleBuilding modular C applications with community-contributed libraries

FAQ

What is ccan?
ccan is the C Code Archive Network, a collection of reusable C modules and helper utilities hosted on GitHub.
How do I use ccan modules in my project?
Create a ccan/ directory in your project and add modules as subdirectories. The create-ccan-tree tool under tools/ helps automate this process.