title: Problem in C - How to erase a array in a database struct
body: <p>include files:</p>
  
  <pre><code>stdio.h
  string.h
  ctype.h
  genlib.h
  simpio.h
  strlib.h
  </code></pre>
  
  <p>The database struct looks like this: </p>
  
  <pre><code>typedef struct{
  
      catT *cats;
      int currentMaxSize;
      int currentNumberOfCats;
      int nextId;
  
  } *DBT;
  </code></pre>
  
  <p>and the "cats" struct looks like this:</p>
  
  <pre><code>typedef struct {
  
      int id;
      string name;
      char gender;
      int birthYear;
      int numberOfColours;
      string colours[MAX_COLOURS];
  
  } catT;
  </code></pre>
  
  <hr>
  
  <p>If we say I got 3 cats in the DBT database and want to erase 
  one of them, how can i code it? I want to have a function to erase 
  a cat!</p>