By zhenglingyun ([email protected]), 2014-07-20
Alghouth this is written in C++, I prefer C implementation because C is tiny, clear, and easy to debug. I use C++ mechanism only when it is hard to be implemented in C. So, this code is easy to be changed to C implementation.
This implementation is tiny and fast. (And bug free I hope...)