How to define the interface to "const char *"
This is on Windows 7, CCL, latest CFFI pull. I am writing an interface to a function that has a const char * as in input: int DDC_GetFileStringPropertyLength (DDCFileHandle file, *const char *property*, unsigned int *length); In my defcfun, can I use *:string*, or do I need to do something special? The reason I ask is that calls to this function cause a memory exception on one of my computers, while it works fine on the second computer. Thanks, Mirko
On Thu, Apr 7, 2016 at 6:10 PM, Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
int DDC_GetFileStringPropertyLength (DDCFileHandle file, const char *property, unsigned int *length);
In my defcfun, can I use :string, or do I need to do something special?
:string should be fine, AFAIK. -- Luís Oliveira http://kerno.org/~luis/
participants (2)
-
Luís Oliveira
-
Mirko Vukovic