budden <···········@mail.ru> writes:
> I know that posting to devel-lists often fails, so I'm crossposting
> it here.
You have to subscribe first.
> It looks like lisp-string-to-foreign might overflow buffer if
> offset>0.
>
> (defun lisp-string-to-foreign (string buffer bufsize &key (start 0)
> end offset
While it's probably not very intuitive, it works as advertised:
LISP-STRING-TO-FOREIGN copies at most BUFSIZE-1 bytes into
BUFFER+OFFSET. Feel free to complain about how unintuitive that is, but
please use cffi-devel. :-)
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/