Non const variant of c_str()

I used this to convert from string to char

now I found I need to trim the string but const denies to change it. So is there a variant which allows to change the variable?

If you don’t mind modifying a copy then you’ll need to copy it:



All fields are required. Your email address will not be published.