title: C struct and memory allocation
body: <p>When you allocate space for memory how do you tell if you need to allocate more space for it? Is there a check or so you can do on your new memory to make sure it is doing OK? ( allocated memory for a struct).</p>
  
  <p>Because what i am thinking is that a struct is a set amount of data and even though I pass it around a lot it should never need more than the size of the struct correct?</p>