title: GTree from Glib example
body: <p>So i have a struct that goes like this:</p>
  
  <pre><code>typedef struct sales
  {
      int* salesN;
      int* salesP;
  }*Sales;
  </code></pre>
  
  <p>And i will have many strings like char* product that i want to associate to this struct. And the struct GTree from Glib seems like a good option in terms of efficiency. </p>
  
  <p>Basically I want the key to be the string and the value to be the struct. I also want them to be sorted alphabetically so i'm guessing the compare function should be something along the lines of strcmp. </p>
  
  <p>But i'm having trouble starting and initialising the GTree. I would really appreciate if someone could give me a quick code example of how to initialise, how to insert and how to search and modify some values.</p>
  
  <p>Thank you so much in advance.</p>