c++ - How to convert a std::string to const char* or char*? - Stack Overflow
How can I convert an std::string to a char* or a const char*? ... Given say... std::string x = "hello"; Getting a `char *` or `const char*` from a `string` How to get a character pointer that's valid while x remains in scope and isn't modified further...