title: memcpy CString to char*
body: <p>I'm trying to copy a <code>CString</code> to a <code>char*</code> using <code>memcpy()</code> and I have difficulties doing it. In fact, only the first character is copied. Here is my code:</p>
  
  <pre><code>CString str = _T("something");
  char* buff  = new char();
  
  memcpy(buff, str, str.GetLength() + 1);
  </code></pre>
  
  <p>After this, all that <code>buff</code> contains is the letter <code>s</code>.</p>