title: How to check if a struct is NULL in C or C++
body: <p>i have the following structure</p>
  
  <pre><code>typedef struct 
  {
     char      data1[10];
     char      data2[10];
     AnotherStruct  stData;
  }MyData;
  </code></pre>
  
  <p>for some reason the implementors choose not to make the stData as pointer, so i have to live with that.
  my problem is how do i check if the stData member is empty? because if it is empty i need to skip certain things in my code.</p>
  
  <p>any help is appreciated</p>