what is c_str()

C++
The basic_string::c_str() is a builtin function in C++ which 
returns a pointer to an array that contains a null-terminated 
sequence of characters representing the current value of the basic_string object

const CharT* c_str() const

Source

Also in C++: