[Haskell-cafe] FFI problem - possibility of CStringLen overflow?

Jason Dagit dagit at codersbase.com
Mon Jul 20 10:02:22 EDT 2009


On Sun, Jul 19, 2009 at 7:24 PM, Robin Green <greenrd at greenrd.org> wrote:

> While rewriting cautious-file to use ByteStrings and FFI just now, I
> came across this potential problem:
>
> Why does the FFI specification define CStringLen as (Ptr CChar, Int)?


Do you think it was a typo and the author(s) meant (Ptr CChar, CInt) ?

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090720/abed0080/attachment.html


More information about the Haskell-Cafe mailing list