[cffi-devel] allocating :count 0 in clisp
30 Jun
2009
30 Jun
'09
1:08 p.m.
(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.
30 Jun
30 Jun
1:43 p.m.
On Tue, Jun 30, 2009 at 2:08 PM, Tobias Rautenkranz<tobias@rautenkranz.ch> wrote:
(cffi:foreign-string-alloc "" :null-terminated-p nil)
Did you expect this to return a null pointer or something else? -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/
5699
Age (days ago)
5699
Last active (days ago)
1 comments
2 participants
participants (2)
-
Luís Oliveira
-
Tobias Rautenkranz