Rabid howler monkeys on crack wrote this code
99 ways to program a hex, Part 23: C89, const correctness, assertive, system calls, full buffering, lookup table