[Prev][Next][Index][Thread]
FFI question: Setting array elements
-
To: info-dylan@ai.mit.edu
-
Subject: FFI question: Setting array elements
-
From: oodl@my-deja.com
-
Date: Fri, 21 Jul 2000 06:15:01 -0400 (EDT)
-
Organization: Deja.com - Before you buy.
-
Xref: traf.lcs.mit.edu comp.lang.dylan:12488
Hi,
I have a question about the Functional Developer C FFI. How do I go
about setting an element in an array that is in a struct?
define C-struct <Foo>
array slot bar :: <C-unsigned-int>, length: 10;
pointer-type-name: <Foo*>;
end;
begin
with-stack-structure(f :: <Foo*>)
//How do I set an element of f.bar, say the fifth element?
end;
end;
thanks in advance!
Sent via Deja.com http://www.deja.com/
Before you buy.
Follow-Ups: