File: hello.lisp

package info (click to toggle)
ecl 21.2.1%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,604 kB
  • sloc: ansic: 146,375; lisp: 67,950; xml: 8,221; asm: 5,551; sh: 3,239; makefile: 1,968; cpp: 190; java: 116
file content (7 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7

(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+))