title: What's the best way to reset a char[] in C?
body: <p>I use a string:</p>
  
  <pre><code>char    word[100];
  </code></pre>
  
  <p>I add some chars to each position starting at 0.
  But then I need be able to clear all those positions so that I can start add new characters starting at 0.</p>
  
  <p>If I don't do that then if the second string is shorten then the first one I end up having extra characters from the first string when adding the second one since I don't overwrite them.</p>