title: Include variables in seperate file in C?
body: <p>I created a structure item:</p>
  
  <pre><code>typedef struct item
  {
      char name[20];
      char desc[100];
      int lp;
      int shield;
      int weapon;
  } item;
  </code></pre>
  
  <p>I need 36 of them so I create an array <code>item treasure[6][6];</code></p>
  
  <p>For each item I insert the data as so:</p>
  
  <pre><code>    strcpy(treasure[0][0].name, "name");
      strcpy(treasure[0][0].desc, "none");
      treasure[0][0].lp = 0;
      treasure[0][0].shield = 0;
      treasure[0][0].weapon = 200;
  </code></pre>
  
  <p>I do this 36 times and takes a lot of space in editor, my question: Can I put this in a separate .c/.h file maybe? I've been trying to but can't make it work.</p>
  
  <p>Thanks for any help!</p>