[Haskell-cafe] Haskell FFI Question
ye yan
haskell.ye.yan at gmail.com
Sat Sep 20 07:40:14 UTC 2014
Thank you guys, I finally make the FFI working.
But I found a *interesting*
<https://www.google.com/search?newwindow=1&client=firefox-a&hs=3Kw&rls=org.mozilla:en-US:official&channel=sb&q=interesting&spell=1&sa=X&ei=AC4dVLXsE8n48QXj14C4CA&ved=0CBsQBSgA>
behavior with in my C++ side of code. I have made a simple thumbnail
generation function in C++ side which include the following snippet of code
```
Blob blob;
try {
On Friday, September 19, 2014 4:50:57 PM UTC+9:30, Erik Hesselink wrote:
>
> Yes, see the documentation for useAsCString [0].
>
> [0]
> http://hackage.haskell.org/package/bytestring-0.10.4.0/docs/Data-ByteString.html#v:useAsCString
>
> Erik
>
> On Fri, Sep 19, 2014 at 6:32 AM, ye yan <haskell... at gmail.com
> <javascript:>> wrote:
> > I have been play around with Haskell FFI. My question is for ByteString
> > (Strict) is there a trailing null append to it when pass to it C
> functions?
> >
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskel... at haskell.org <javascript:>
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
> _______________________________________________
> Haskell-Cafe mailing list
> Haskel... at haskell.org <javascript:>
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140920/766a8ef5/attachment.html>
More information about the Haskell-Cafe
mailing list