title: zend custom module
body: <p>I am trying to build my own zend module (.so)</p>
  
  <p>We have multiple functionality that can be done in our own module which will improve our performance on a high traffic website (50k+ visits a day).</p>
  
  <p>These are simple module but I was wondering is the language used by zend is similar to <code>C</code>?</p>
  
  <p>How easy is to translate current C code to Zend code?</p>
  
  <p>Example:</p>
  
  <p>I want to check how many nodes I have in a tree:</p>
  
  <pre><code>int nbNodes(Nodes *n, int *err) {
   // count how many nodes a tree has
   // Nodes *n = root of the tree
   *err = 0;
   if(emptyTree(n ,err)) {
    return 0;
   }
   return nbNodes(n-&gt;leftSide, err) + nbNodes(n-&gt;rightSide, err) +1);
  }
  </code></pre>