This repository has been archived by the owner on Mar 31, 2019. It is now read-only.
Addressed #1 by replacing tricky pointer logic with std C++. The code is now correct and easier to understand at the expense of giving up the goal of targeting pure C. A more C++-friendly API will follow.