[erlang-questions] using strings with NIF

Sverker Eriksson sverker@REDACTED
Wed Dec 9 10:41:37 CET 2009


Jason Frame wrote:
> Hi,
>
> I am trying to use a string as an argument with NIF. I can't work out
> how to extract the string on the c side though. Using a int is quite
> simple with the enif_get_int function but there doesn't seem be a
> similar function for strings. 

I've put enif_get_string on the ToDo.

Here is a web site in some eastern language that has a 
"my_enif_get_string" implemented. I leave it up to you to figure out the 
copyrights :-)

http://d.hatena.ne.jp/vostok92/20091201/1259680319


/Sverker, Erlang/OTP Ericsson




More information about the erlang-questions mailing list