<div dir="ltr">Thanks a lot! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 28 июл. 2020 г. в 16:25, Luís Oliveira <<a href="mailto:luismbo@gmail.com">luismbo@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 28 Jul 2020 at 12:53, oleg harput <<a href="mailto:olegharput@gmail.com" target="_blank">olegharput@gmail.com</a>> wrote:<br>
><br>
> void InitWindow(int width, int height, const char *title); in C<br>
><br>
> (cffi:defcfun ("InitWindow" init-window) in CFFI<br>
> :void <==== This void is true or not?<br>
> (width (:pointer :int))<br>
> (heigh (:pointer :int))<br>
> (title (:pointer :char)))<br>
><br>
> please help.<br>
<br>
Yes, :void is correct there. (:pointer :int) should be :int instead<br>
and :string should be more convenient than (:pointer :char) since<br>
it'll convert Lisp strings to C strings for you. You may find<br>
<a href="https://common-lisp.net/project/cffi/manual/html_node/Tutorial.html" rel="noreferrer" target="_blank">https://common-lisp.net/project/cffi/manual/html_node/Tutorial.html</a><br>
useful.<br>
<br>
Cheers,<br>
<br>
-- <br>
Luís Oliveira<br>
<a href="http://kerno.org/~luis/" rel="noreferrer" target="_blank">http://kerno.org/~luis/</a><br>
</blockquote></div>