Source to the dynamic memory handler described in Jim Schimandle's
article "Encapsulating C Memory Allocation"