Sarah Happy: Code

If you use my code, I only require that you give credit where credit is due.

base32.h, base32.c, base32.tab.pl
A table based base32 encoder and decoder
smart_ptr.h, smart_ptr.cc, smart_ptr-test.cc
A revised version of my smart pointer class from June 2000, I still need to make this thread safe. This allows you to forget about cleaning up your dynamic memory by keeping a reference count and calling delete when the count hits zero.
thread.h, thread.cc, thread-test.cc
A revised version of my thread class from July 1999, it has been simplified from the original version
dbi.php
An abstraction layer for database connections in php, this one is for postgresql. For an application that uses this module, to convert form postgresql to mysql to sqlLite would only require changing this one module.
chat-1996/
My network chat program for DOS, from 1996. It only requires a shared directory writable by all the users, it includes an authenticated super user. The program uses multi-threaded programming techniques to simplify the problem being solved. Due to limits in the host operating system I used cooperative multi-tasking with shared memory, which I later ported to Linux 2.2. It would need more porting to get it compiling today, something I may try.