title: Is strdup adding a '\0' when duplicating the array of char?
body: <p>i would like to know if strdup adds a '\0' at the end of the new array if the src array does not contain one ?</p>
  
  <p>let's assume we have an array containing "hello" allocated by this kind of malloc</p>
  
  <pre><code>malloc(sizeof(char) * 5);
  </code></pre>
  
  <p>so 5 bytes for 5 characters.</p>
  
  <p>I guess the src string did not received the sufficient memory for the '\0'.</p>
  
  <p>What is supposed to happen in this case ?</p>