changed code from c++ to c