That nice snippets of C code should be moved out of junkcode directories and exposed to a wider world, where they can become something useful.
CCAN is loosely modelled after the successful CPAN project for Perl code development and sharing.
Get The Code
Use The Code
There are two ways to use it:
- Put modules into a ccan/ subdirectory into your project. Add a "config.h" (like this example, or generate one using the configurator) and compile every .c file in ccan/* (as in this Makefile)).
- Alternatively, just hack whatever parts you want so it compiles in your project.
We always welcome new code; see how!.
Anyone can send code or a git pull request to the friendly mailing list or just upload it using the web form.
"GPLv2 or later" and supersets thereof (eg. LGPLv2+ or BSD) licenses preferred.
Complaints, Ideas and Infrastructure
We have a low volume mailing list for discussion of CCAN in general, and you're welcome to join.
We also have an IRC channel: #ccan on Freenode.
We also have a wiki; feel free to enhance it.