C-Craft

Overview
C-Craft provides essential data structures and memory management for C applications without external dependencies. Built on standard C and Unix system calls, it handles the plumbing so you can focus on your product.
Purpose
C-Craft eliminates repetitive low-level coding in C projects by providing production-ready implementations of memory management, collections, string operations, command-line application utilities and more.

Key Features
- Scoped memory management - allocate freely, release entire scopes in one call
- Generic collections - lists, vectors, dictionaries, stacks, and queues
- Advanced string handling - search/replace, join, extract, split by char/string/regular expression

Why Use C-Craft?
Imagine you have to read and save customised data structures, and index them by a string name. Now you need hashing, and a hash lookup, and linked lists to save the items. Then you have to malloc memory for each struct, and for the hash table entries. What happens when you remove an entry? Which bit of your code frees the memory for the struct, or the memory for the hash entry? Maybe it’s a service application. You can’t afford a memory leak, so how can you be sure you free everything?
This is precisely the sort of problem C-Craft was designed to address. At C Libs, we believe support for this, and many other similar real world problems should be part of the C standard. So we built C-Craft.
Next Steps
- View the on-line documentation
- Download C-Craft v1.0.0 (tarball). Coming soon!
- Checkout the licensing agreement.
- Contact C Lib sales directly at sales@clibs.co.uk to purchase.
