[Prev][Next][Index][Thread]

FFI question: Setting array elements



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: