title: difference between strncat and memcpy
body: <p>Please find below code snippet. Is there any chance wherein <code>strncat</code> and <code>memcpy</code> will have different values in <code>pDBVal</code>. If so, Please explain.    </p>
  
  <pre><code>memcpy(pDBVal, pHash, 20); 
  
  strncat(pDBVal, cBinSalt, 16);
  
  memcpy(pDBVal+20,cBinSalt,16);
  </code></pre>
  
  <p>Ideally output in pDBVal will be same. Also please explain the difference in execution of both the functions</p>