title: Can strncpy return 0?
body: <p>The man page of <code>strncpy</code> states:</p>
  <blockquote>
  <p>char *strncpy(char *dest, const char *src, size_t n);</p>
  <p>The  strcpy()  and  strncpy() functions return a pointer to the destination string dest.</p>
  </blockquote>
  <p>Is it possible that <code>strncpy(buff, &quot;something&quot;, 9) == 0</code> be true if <code>char buff[100]</code>?</p>
  <p><strong>UPDATE</strong></p>
  <p>I also consider it as not very probable but it's part of a program that I should make to bufferoverflow and this condition stays on my way to achieve this.</p>