title: Initialize/reset struct to zero/null
body: <pre><code>struct x {
      char a[10];
      char b[20];
      int i;
      char *c;
      char *d[10];
  };
  </code></pre>
  
  <p>I am filling this struct and then using the values. On the next iteration, I want to reset all the fields to <code>0</code> or <code>null</code> before I start reusing it. </p>
  
  <p>How can I do that? Can I use <code>memset</code> or I have to go through all the members and then do it individually?</p>