Code Snippets
Useful C code
- cmem - Constant width memory allocator.
- A memory management system for allocating large number of small, constant width chunks. (cmem.tgz cmem.zip)
- cset - Constant width set implementation.
- A set implementation for arbitrary data of constant width. Works via refernece rather than copying so not appropriate for sets of very small members (such as integers). Requires cmem. (cset.tgz cset.zip)
- ssquare - Efficient calculation of a^k (mod m).
Complete Programs
- mm - Master mind analzyer
- Analyzes the game of master mind for an abitrary number of pegs and colors. Very good at the game but takes an awful long time. (mm.tgz mm.zip mm.exe (W32))