change to c from c++