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 mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to