title: What is the reason for memsetting initialized buffer
body: <p>While traversing Wikipedia following some links, I stumbled across <a href="http://en.wikipedia.org/wiki/Gets%28%29#Example" rel="nofollow">the following code example</a> that initializes a char buffer to 0, but then <code>memset</code>s it to 0 before use. Is this necessary? If so, why? The reason I ask is that I am no expert, and the example clearly states that this was the coder's intention with the comment "<code>/* Really initialized to zeroes */</code>" on the <code>memset</code>, as opposed to "<code>/* initialized to zeroes */</code>" on the initialization.</p>
  
  <p>EDIT: Note, I've rolled back the edit on the wikipedia page that caused this, so it is no longer visible in the link.</p>