Re: Initializing an array of cstrings
Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Sat, 17 Apr 2004 20:46:58 -0600
| Newsgroups | gmane.lisp.uffi.general |
|---|---|
| Message-ID | <[email protected]> |
Dan Debertin wrote: > I'm trying to FFI to a function, one of whose arguments is a > NULL-terminated char**. How would I set this up under UFFI? I've been > trying various things from the manual for an hour or so, and am > getting nowhere. You first create an array of (* :unsigned-char). Then, you store in each member of the array [except for the last] a foreign-string allocated with allocate-foreign-string. Then, in the last member of the array you store a null pointer created with (make-null-pointer :unsigned-char). -- Kevin Rosenberg kevin-HJRc7zDS/[email protected]