C2HS - marchalling arrays

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

C2HS - marchalling arrays

Alexey Raga

I am using c2hs and I want to create bindings for a C function with the following signature:

my_function(my_struct_t*, int* values, size_t num_values);

Ideally I'd like to have a function that accepts [CInt], not a pair (pointer, size). 
What is the easiest way to do it? Can c2hs help me with this or I need to do it manually?


Haskell-Cafe mailing list
[hidden email]