Mohamed Lrhazi schrieb:
> On Mon, Apr 27, 2009 at 9:58 AM, Lisandro Dalcin <[email protected]> wrote:
>   
> I tried the following:
>
> cdef extern from "mylib.h":
>   cdef struct struct_FOO "FOO":
>     pass
>   ctypedef struct_FOO* FOO
>   int mylib_func(FOO* c)
>
> cdef FOO s_foo
> s_foo=NULL
> mylib_func(&s_foo)
>   
in this case, s_foo is a pointer, right? does the lib really what the
address of a pointer rather than the pointer?

/martin

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to