[Haskell-cafe] C2HS - marchalling arrays

Alexey Raga alexey.raga at gmail.com
Sun Apr 10 12:09:06 UTC 2016


Hi,

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?

Regards,
Alexey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160410/2ce16849/attachment.html>


More information about the Haskell-Cafe mailing list