pub unsafe extern "C" fn enif_get_double(
    env: *mut ErlNifEnv,
    term: ERL_NIF_TERM,
    dp: *mut c_double
) -> c_int