Change C++ style to pure C