It’s trivial to wrap your C implementation so that it can be called directly from C++. So translating your implementation from C to C++ provides no real benefit, it’s more like busy work. Plus C++ is such an ugly language that its hard to imagine that it won’t die out over the next decade, replaced by C#/Objective C/Java etc. C, on the other hand, has virtues of simplicity, clarity, portability, and performance that other programming languages have yet to supplant.