title: strcpy_s for char** and char[][]
body: <p>I used <code>strcpy_s</code> as below:</p>
  
  <pre><code>char names[2][20];
  strcpy_s(names[0],"Michael");
  strcpy_s(names[1],"Danny");
  </code></pre>
  
  <p>and it worked all right.</p>
  
  <p>But when I changed to <code>char **</code>, </p>
  
  <pre><code>int size1=2;
  int size2=20;
  
  char **names=new char*[size1];
  for(int i=0;i&lt;size1;i++)
    names[i]=new char[size2];
  strcpy_s(names[0],"Michael");
  strcpy_s(names[1],"Danny");
  </code></pre>
  
  <p>It gives me this error message:</p>
  
  <blockquote>
    <p>error C2660: 'strcpy_s' : function does not take 2 arguments</p>
  </blockquote>
  
  <p>Why is this happening? I need to dynamically create char arrays, so what should I do?</p>