title: How to make global variable in library project using MPLAB X IDE
body: <p>I want to create a library in C using MPLAB X IDE(ide for PIC developing).</p>
  
  <p>My library ABCLib has one simple source file like this:</p>
  
  <p><strong>file abc.c</strong> </p>
  
  <pre><code>void abcTest(int n){ 
      // I want store n as global variable
  } 
  </code></pre>
  
  <p>To using this library in MyProject i have to create abc.h inside MyProject header folder:</p>
  
  <p><strong>file abc.h</strong> </p>
  
  <pre><code>#ifndef _ABC_H
  #define _ABC_H 
  
  void abcTest(int n);
  
  #endif;
  </code></pre>
  
  <p><strong>file MyProject.c(main file)</strong></p>
  
  <pre><code>#include "abc.h"
  
  void main(void) {
      abcTest(10);
  }
  </code></pre>
  
  <p>Now, i want to store n as global variable, so, after a call to abcTest() i can retrieve the value of n whereever i want.</p>
  
  <p>I'm developing a library with intention to reuse it in all my projects.</p>