Category: c

He4: A fast fixed-memory hash table

I needed a fast, fixed-memory hash table in C, so I ended up writing one. The advantage is that the table does not automatically grow, keeps track of when items are found, and can be rehashed to a new table of exactly the same size. This allows for very predictable performance without ever running out

A Tiny C Unit Test Framework

I’ve got a unit testing framework I’ve been using for a while (for C).  There are plenty of these available in the world, but I happen to like mine.  It consists of a single, short header file.  I once extended it for C++ for a project I did at CERT, but that is lost to