erl_nif interface

William v Doorn williamvdoorn@REDACTED
Tue Mar 30 16:54:35 CEST 2010


Hello all,

I'm pretty new to Erlang and decided to try out the erl_nif interface. I
tried to make a simple counter, but I can't get it to work. It seems to go
wrong at enif_make_int, where it seems to return the memory address instead
of the integer itself.

I've included these things in the paste:

- C code using erl_nif
- Erlang module
- Interpreter session

http://gist.github.com/348161

Thanks,

William van Doorn


More information about the erlang-questions mailing list