Would you mind creating a c branch? When looking at the cpp file I am not sure if its trivial to translate the c++ code into c ?