converting from c++ to c is complete