title: How to clear out char array with memset
body: <p>I'm looking for a method to clear a char array similar to how in python you would do the following:</p>
  
  <pre><code>buffer = ""
  </code></pre>
  
  <p>Is using memset the best approach for this, or is there another builtin function/method I'm missing?</p>
  
  <p>What Ive tried:</p>
  
  <pre><code> memset(buf, '\n', sizeof(char));
  </code></pre>