chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] how to map Scheme string to void* instead of char*


From: felix winkelmann
Subject: Re: [Chicken-users] how to map Scheme string to void* instead of char*
Date: Wed, 4 Apr 2007 11:44:59 +0200

On 4/4/07, minh thu <address@hidden> wrote:
Hi,

I'm a bit lost :
I'm using foreign-parse to write bindings for the QuesoGLC library [1]
(which I'll release as BSD3 egg; the library itself is LGPL).
Some functions of this library accept string as argument; the type is
void*, not char*.
Building the bindings seems to go well but when I want to use such a function,
Chicken tells me "bad argument type - not a pointer".

I guess I'll have the same problem with void* return types.
How should I handle those cases ?


How do you wrap those library functions? With easyffi? Then, you can
just change the argument type declarations to "char *".


cheers,
felix




reply via email to

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