daemon c++ -> c