title: How to check if an initialised struct is empty or not?
body: <p>So I want to check if my struct is empty or not. I declare my struct as a variable but DO not allocate memory.</p>
  
  <p><code>text* t;</code></p>
  
  <p>Later on I want to check with an if statement whether my struct is empty or not.
  <code>if (t!=NULL)</code> does not seem to work as <code>t</code> has an address. Also doing something like <code>if (t-&gt;head != NULL)</code> gives me a segfault as I haven't allocated any memory for the struct.</p>
  
  <p>I don't want to <code>malloc</code> as soon as I declare <code>t</code>. Is there a way to check if my struct is empty?</p>
  
  <p>Thanks in advance!</p>