(cffi:foreign-string-alloc "" :null-terminated-p nil) gives an error in CLISP: *** - FFI:FOREIGN-ALLOCATE: element type has size 0: #(FFI:C-ARRAY FFI:UINT8 0)
The problem is that FFI:FOREIGN-ALLOCATE does not allow the allocation of arrays of size zero. Not sure where to fix this.
On Tue, Jun 30, 2009 at 2:08 PM, Tobias Rautenkranztobias@rautenkranz.ch wrote:
(cffi:foreign-string-alloc "" :null-terminated-p nil)
Did you expect this to return a null pointer or something else?