C++ will handle the (char *) <-> std::string gymnastics for you transparently.