<div dir="ltr">Also, I highly recommend finding a good NIF library to read the code for - it will be way, way more clear if you do so.  <div><br></div><div>IIRC there's a good NIF library for interacting with sqlite3 that is very readable and will give you an idea of what a practical</div>
<div>implementation looks like.  It might be this one? </div><div><br></div><div><a href="https://github.com/mmzeeman/esqlite">https://github.com/mmzeeman/esqlite</a><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 31, 2014 at 1:42 PM, Steve Vinoski <span dir="ltr"><<a href="mailto:vinoski@ieee.org" target="_blank">vinoski@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Fri, Jan 31, 2014 at 4:35 PM, kraythe . <span dir="ltr"><<a href="mailto:kraythe@gmail.com" target="_blank">kraythe@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Greetings, I am a newbie to erlang. I am interested in binding a c library that I have as source (that I have written) to Erlang. In Java I would use JNI. In Erlang I don't know. Can anyone point me at where the docs are for this? Especially a tutorial. Google has been unrevealing and i have been through hundreds of dead ends. </div>

</div></blockquote><div><br></div></div><div>If you really want the C library running together with the Erlang VM, you'll write either a set of native implemented functions (NIFs) or a linked-in driver. See the links below.</div>

<div><br></div><div><a href="http://www.erlang.org/doc/tutorial/nif.html" target="_blank">http://www.erlang.org/doc/tutorial/nif.html</a><br></div><div><a href="http://www.erlang.org/doc/man/erl_nif.html" target="_blank">http://www.erlang.org/doc/man/erl_nif.html</a></div>

<div><a href="http://www.erlang.org/doc/apps/erts/driver.html" target="_blank">http://www.erlang.org/doc/apps/erts/driver.html</a></div><div><a href="http://www.erlang.org/doc/man/erl_driver.html" target="_blank">http://www.erlang.org/doc/man/erl_driver.html</a></div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>--steve</div></font></span></div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>