call C code from C++ wrapper; prettier print