title: c++ copy string literal (from C)
body: <p>I want to save a C String to a C++ Variable. This shall than be passed to the C-API function.</p>
  
  <p>The string is defined in the C-API
  as</p>
  
  <pre><code>#define  XI_PRM_BINNING_HORIZONTAL_MODE         "binning_horizontal_mode"
  </code></pre>
  
  <p>I want to select the string in a switch</p>
  
  <pre><code>char * binnMode;
  ...
  binnMode = XI_PRM_BINNING_HORIZONTAL_MODE;
  </code></pre>
  
  <p>But that fails because the C-literal is defined as <code>char str[]</code> (C++11)</p>
  
  <p>I want to pass the string to a function that expects</p>
  
  <pre><code>xiSetParamInt(IN HANDLE hDevice, const char* prm, const int val)
  </code></pre>
  
  <p>How do I need to define <code>binnMode</code> in order to get this working?</p>