Because I needed a library available from within another C program, and because there didn't seem to be a good, reusable C implementation around.