title: What is use of c_str function?
body: <p>I understand is <code>c_str</code> convert a string that may or may not be null-terminated to a null-terminated string.</p>
  <p>Is this true? Can you give some examples?</p>