C_str() from Solving a string a challenge

What is the c_str() function doing here?

c_str() converts a C++ string into a C-style string which is essentially a null terminated array of bytes.