[erlang-questions] using strings with NIF

Jason Frame <>
Wed Dec 9 11:42:05 CET 2009


Thanks that code worked.

On Wed, Dec 9, 2009 at 7:41 PM, Sverker Eriksson
<> wrote:
> 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
>
>
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list