chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] howto return a list from a c-function


From: foobar
Subject: [Chicken-users] howto return a list from a c-function
Date: Tue, 03 Apr 2007 13:14:20 +0200
User-agent: Thunderbird 1.5.0.9 (X11/20070103)

Hi,

i need to be able to return a list from a c-function in an extension of
mine.
More specifically i need to convert an array of char-pointers into a
list of strings and
return that list.

I looked into the docs and fount C_list which is responsible for
constructing lists.
The problem here is that the elements need to be C_alloc'ed, which is
not the case
in my extension.

Maybe i have to copy the strings inside the array into an array of
C_alloc'ed
objects and pass this array to C_list?
If so how is that actually done correctly?

Any hints are very welcome.

greets




reply via email to

[Prev in Thread] Current Thread [Next in Thread]