mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2025-12-06 02:40:26 -08:00
Examples were relicensed (under permission from JJGR) to BSD-2-Clause a few years back. We also remove Copyright from individual files to match the convention that examples doesn't have that (whole codebase is under JJGR's copyright too).
7 lines
179 B
Common Lisp
7 lines
179 B
Common Lisp
|
|
(ffi::clines "extern const char *hello_string;")
|
|
|
|
(ffi::def-foreign-var ("hello_string" +hello-string+) (* :char) nil)
|
|
|
|
(print (ffi:convert-from-foreign-string +hello-string+))
|
|
|