python strings are automagically converted to char* by cython. You can also look at a wrapper i'm building for the OpenCV library. cython-opencv at google code.
Chris On Mon, Jun 1, 2009 at 6:38 AM, Amit Sethi <amit.pureene...@gmail.com>wrote: > > hi , > I guess this needs to go on cython-users but i did not see any such mailing > list so I am posting it here , > I am trying to create python bindings for a library written in C , > But I am wondering as to how I am suppose to handle pointers. > > For example > > for the C function, > int * analyse_row (int length, unsigned char *data), > > > Now in this function call how am i supposed to handle *data , can i pass a > string in place of *data ., Also please guide be to some projects that use > Cython for binding with C > -- > A-M-I-T S|S > > _______________________________________________ > Cython-dev mailing list > Cython-dev@codespeak.net > http://codespeak.net/mailman/listinfo/cython-dev > >
_______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev