How to define the interface to "const char *"

Luís Oliveira luismbo at gmail.com
Thu Apr 7 20:16:44 UTC 2016


On Thu, Apr 7, 2016 at 6:10 PM, Mirko Vukovic <mirko.vukovic at 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/



More information about the cffi-devel mailing list