chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] foreign-lambda declaration for char**?


From: .alyn.post.
Subject: [Chicken-users] foreign-lambda declaration for char**?
Date: Sun, 8 Dec 2013 10:29:18 -0700

I have the following C function:

  extern void svec_free(char **v);

And I want to call it from Scheme, so I say:

  (define svec-free
    (foreign-lambda void "svec_free" (c-pointer c-pointer)))

But the above (c-pointer c-pointer) declaration is a void**, not a
char**, so I get the following warning:

  warning: passing argument 1 of 'svec_free' from incompatible pointer type

What is the magic phrase to tell foreign-lambda a parameter is a
char**?

-a
-- 
my personal website: http://c0redump.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]