2007-02-28から1日間の記事一覧

Cの関数をSBCLから呼んでみる

http://www.geocities.co.jp/SiliconValley-SanJose/7474/cmuclMemo.html#0001にCMUCLでの例がある. SBCLでもほとんど同じように出来る. 以下のようなCのソースファイルcall_c_from_sbcl.cがあって, #include <stdio.h> int call_c_from_sbcl(void){ printf("Hello\n"</stdio.h>…