[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MIT-Scheme-devel] ffi and arrays
From: |
Peter Feigl |
Subject: |
[MIT-Scheme-devel] ffi and arrays |
Date: |
Tue, 11 Dec 2012 13:20:24 +0100 |
User-agent: |
Notmuch/0.11+77~gad6d0d5 (http://notmuchmail.org) Emacs/24.1.50.2 (i686-pc-linux-gnu) |
Hello!
I've been playing around with the FFI, things work great for the most
part!
However, I just can't figure out how to peek and poke array contents?
Say I have
(define array (malloc (* 10 (C-sizeof "double"))))
how would I now set the contents of this alien? Say from 1.0 to 10.0?
There is a primitive C-POKE-DOUBLE, but I haven't yet found a way to
use this correctly :-/
I'd appreciate any help!
Greetings,
Peter
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [MIT-Scheme-devel] ffi and arrays,
Peter Feigl <=