What are the differences between
Regarding performance my guess is that
&string is a little faster than string.c_str() as it doesn't require a function call.
Regarding safety and stability common sense tells me that
string.c_str() should have some checks implemented, but I don't know, that's why I'm asking.