title: How to convert memcpy to memcpy_s?
body: <p>I am just a beginner in C. I have written a code in C with a lot of memcpy functions. I want to convert the memcpy statements to memcpy_s.. I don't quite get the syntax to do this.</p>
  
  <p>This is my code snippet:</p>
  
  <pre><code>signed char buffer[MAX]; 
  unsigned char len; 
  const char *scenario = ConvertMap[identity]; 
  len = strlen(scenario); 
  memcpy((void*)&amp;buffer[0],scenario,len);
  </code></pre>
  
  <p>How do I convert the last line to memcpy_s? Is it like:</p>
  
  <p><code>memcpy_s((void*)&amp;buffer[0], sizeof(buffer), scenario, len)</code> ?</p>