C-style C++ library