converting c++ app to c