[Prev][Next][Index][Thread]
Re: C FFI question
In article <wkbsyowue2.fsf@double.co.nz>,
Chris Double <chris@double.co.nz> wrote:
>
> What about something like:
>
> let data = as(<byte-string>, "hel\<00>lo");
> sendpacket(c-type-cast(<c-unsigned-char*>, data), data.size);
>
> I haven't tried it but it may work. I don't even know if the cast is
> necessary.
>
Unfortunately your suggestion doesn't work.
This should be pretty basic functionality for a C FFI. Surely the
streams library must do what I want for reading/writing files and
sockets.
Sent via Deja.com http://www.deja.com/
Before you buy.
References: