[erlang-questions] NIF wishes

Sverker Eriksson <>
Tue Dec 8 20:04:50 CET 2009


Hans Nilsson R wrote:
> enif_make_sub_binary(env, bin, from, to) would be useful.
>
Already on my todo list.

>
> Therefore I'd like to have some  enif_make_string_n(env, char *p, int 
> length) as well, analogous to the c-library functions strcpy and strncpy.
Sounds reasonable. You can however make your own by traversing the 
string backwards and call enif_make_list_cell.

/Sverker, Erlang/OTP



More information about the erlang-questions mailing list