cppreference.com > C++ Strings > c_str c_str Syntax:
      #include <string>
      const char* c_str();
The function c_str() returns a const pointer to a regular C string, identical to the current string. The returned string is null-terminated. Note that since the returned pointer is of type (C/C++ Keywords) const, the character data that c_str() returns cannot be modified. Related topics: String operators data