26 Sep
2009
26 Sep
'09
9:12 a.m.
this is exactly the example from the manual: (let ((str (make-array 4 :element-type '(unsigned-byte 8) :initial-element 65))) (foreign-funcall "strlen" :string str :int)) but my lisp says: #(65 65 65 65) is not a Lisp string or pointer. [Condition of type SIMPLE-ERROR] What is going on? This works as expected: (let ((str (make-array 4 :element-type 'character :initial-element (code-char 65)))) (foreign-funcall "strlen" :string str :int)) => 4 I run clozure cl on windows 32