title: How to reset a string in C
body: <p>I have this string</p>
  <p><code>char currentString[212] = { 0 };</code></p>
  <p>and after I'm using it once, I want to reset it.</p>
  <p>I tried many ways, such as:</p>
  <pre><code>for (int k = 0; k &lt; strlen(currentString); k++)
  {
      currentString[k] = '\0';
  }
  </code></pre>
  <p>but it won't go over the loop more than once, and it give '\0' only to the first char, the rest remain the same.</p>
  <p>and I also tried:</p>
  <pre><code>currentString[0] = '\0';
  </code></pre>
  <p>yet I get the same result.</p>
  <p>any suggestions for what can I do?
  thanks!</p>