Package: cffi
Macro with-foreign-pointer-as-string
Lambda Listwith-foreign-pointer-as-string ((var-or-vars size &rest args) &body body) ArgumentsReturn ValueA Lisp string. Details The with-foreign-pointer-as-string macro is similar to with-foreign-pointer except that var is used as the returned value of an implicit progn around body, after being converted to a Lisp string using the provided args. ExamplesCFFI> (with-foreign-pointer-as-string (str 6 str-size :encoding :ascii) (lisp-string-to-foreign "Hello, foreign world!" str str-size)) => "Hello" | See also |