Package: cffi
Function lisp-string-to-foreign
Lambda Listlisp-string-to-foreign (string buffer bufsize &key start end offset encoding) ArgumentsReturn ValueA foreign pointer. Details The lisp-string-to-foreign function copies at most bufsize-1 octets
from a Lisp string using the specified encoding into buffer+offset. The foreign string will be null-terminated. Start specifies an offset into string and end marks the position following the last element of the foreign string. ExamplesCFFI> (with-foreign-pointer-as-string (str 255) (lisp-string-to-foreign "Hello, foreign world!" str 6)) => "Hello" | See also |