Converted C++ syntax to C