Well, it is possible, but it would easily take four times the amount of time it would take to port the C++ code to C. So porting makes the most sense.