Re: [Chicken-users] lolevel help: array of c-pointers from string-list?

2006-09-27 Thread Graham Fawcett
Hans, John -- thanks both for the replies. The byte-vector approach I considered did work as well, but still resorted to C at points, and wasn't any cleaner than your C examples. Hans, I may end up using some of that code -- and I really wasn't planning to implement much more than bind() and

Re: [Chicken-users] lolevel help: array of c-pointers from string-list?

2006-09-26 Thread John Cowan
Graham Fawcett scripsit: Regardless, I'm stuck, and could use help. :-) Advice, anyone? You need to create a little bit of C glue. I had the same situation for invoking some C functions that want their own argc and argv; this is what I did. I used a static rather than a dynamic array to hold

Re: [Chicken-users] lolevel help: array of c-pointers from string-list?

2006-09-26 Thread Hans Bulfone
hi, On Tue, Sep 26, 2006 at 04:44:21PM -0400, Graham Fawcett wrote: Hi folks, I'm writing a basic openldap egg; it's going well, but I've hit a small snag. The ldap_search() function takes a null-terminated array of C strings -- char *attrs[] -- to specify the record attributes you're