Convert from C++ to C because fuck C++