 API</span></a></span>

          <span class="next"><a href="writing-c-functions.html"><span class="prevnext-text">Writing C Functions</span></a></span>
        </div>
        

<p>In order to write a functional and correct C extension to Janet, it
is necessary to have a good understanding of Janet's memory model. Code
that does not follow this model may leak memory, especially on errors (panics), and
may trigger use after free bugs. It is the author's recommendation to test your
extension with a tool like