title: Use C library in Android over NDK
body: <p><strong>What I want to do:</strong></p>
  
  <p>I've found a <a href="http://www.schmittmachine.com/dywapitchtrack.html">C library which computes an audio stream's pitch</a> and want to use it in Android.</p>
  
  <p>I thought instead of porting it I could also use it with the help of the NDK, right?</p>
  
  <p>How does this work? I have to install the NDK, of course, and then? Can I call functions of this C library just as normal in Android?</p>
  
  <p><strong>The library in C that I want to "import":</strong></p>
  
  <pre><code>#include "second_c_file.h"
  #include &lt;math.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  #ifndef max
  #define max(x, y) ((x) &gt; (y)) ? (x) : (y)
  #endif
  #ifndef min
  #define min(x, y) ((x) &lt; (y)) ? (x) : (y)
  #endif
  
  int _power2p(int value) {
      ...
  }
  
  typedef struct _minmax {
      int index;
      struct _minmax *next;
  } minmax;
  
  double _test_calculate(double * var1, int var2, int var3) {
      ...
  }
  </code></pre>
  
  <p>The file "second_c_file.h" is another file that I need to import, obviously.</p>
  
  <p>Thanks for your help!</p>