I would like to convert a C++ string that the user inputs to a c string. The problem is I have no idea how long the c++ string will be and i know the c string has to have one extra space for \n. Is there a way to apply the lenght of the inputed string into the cstring?
egg
string userInput;
char userInputC[?????];