[Openmcl-devel] foreign fn call
psismondi at arqux.com
Sun Mar 28 19:27:26 PDT 2010
On 2010-03-28, at 9:26 PM, Philippe Sismondi wrote:
> I have taken a month or two away from CL to learn obj-c/cocoa so that I can use the cocoa bridge more knowledgeably. Now I am reading up on foreign functions etc. in the ccl documentation.
> The ccl doc section 12.12 The Foreign-Function-Interface Dictionary gives this example:
> (with-cstrs ((format-string "the answer is: %d"))
> (#_printf format-string :int answer))
> This just returns an integer (19) when I key it in to ccl. Should I expect it to print what it looks like it would print? What else must I do here? (I had set 'answer' to an integer value.)
> - Phil -
Further - is this just a matter of flushing stdout? I don't seem to have any luck tacking a newline onto the cstring.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel