[Top][All Lists]
[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
- [Chicken-users] howto return a list from a c-function,
foobar <=
- Re: [Chicken-users] howto return a list from a c-function, Hans Bulfone, 2007/04/03
- Re: [Chicken-users] howto return a list from a c-function, felix winkelmann, 2007/04/04
- Re: [Chicken-users] howto return a list from a c-function, foobar, 2007/04/04
- [Chicken-users] getting exact chicken version during compile-time, foobar, 2007/04/05
- Re: [Chicken-users] getting exact chicken version during compile-time, felix winkelmann, 2007/04/05
- Re: [Chicken-users] getting exact chicken version during compile-time, felix winkelmann, 2007/04/05
- Re: [Chicken-users] getting exact chicken version during compile-time, foobar, 2007/04/10
- Re: [Chicken-users] howto return a list from a c-function, John Cowan, 2007/04/04