I can't seem to find a good example on the internet on how to convert a c++ string into a c string. I'm using a function to transfer a c++ string so then i can convert into a c string and then return a pointer. Here is what i have so far for the function. really lost.
since you declared line as a string, then, line.c_str() is the character(const) pointer to its c string equivalent. See the reference(given) above for more info though.
btw, wouldnt it be better to have char* as the type of that function? :)