yes Olivier, i already found this solution a few hours ago digging in the
Guile doc:
https://www.gnu.org/software/guile/manual/html_node/Void-Pointers-and-Byte-Access.html
thanks
Damien
On Fri, Dec 30, 2022 at 5:03 PM Olivier Dion
wrote:
> On Fri, 30 Dec 2022, Damien Mattei wrote:
> > there
On Fri, 30 Dec 2022, Damien Mattei wrote:
> there was a mistake in my previous post, i wanted to say int cfunc
> (int,int,char *), suggestion answered to use '*:
>
> (define cfunc (foreign-library-function "libguile-cfunc" "cfunc"
> #:return-type int #:arg-types (list int int '*)))
>
> works at
there was a mistake in my previous post, i wanted to say int cfunc
(int,int,char *), suggestion answered to use '*:
(define cfunc (foreign-library-function "libguile-cfunc" "cfunc"
#:return-type int #:arg-types (list int int '*)))
works at this step but gives an error later:
(cfunc 3 27 "toto")
hi,
how do i declare in Guile a function that in C is of this type:
int foo(int,int,char *)
the problem i have is with the char *:
(define cfunc (foreign-library-function "libguile-cfunc" "openmp"
#:return-type int #:arg-types (list int int )))
i do not know what to put in place of