<div>python strings are automagically converted to char* by cython. </div>
<div> </div>
<div>You can also look at a wrapper i&#39;m building for the OpenCV library. cython-opencv at google code. </div>
<div> </div>
<div>Chris<br><br></div>
<div class="gmail_quote">On Mon, Jun 1, 2009 at 6:38 AM, Amit Sethi <span dir="ltr">&lt;<a href="mailto:amit.pureenergy@gmail.com">amit.pureenergy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br clear="all">hi , <br>I guess this needs to go on cython-users but i did not see any such mailing list so I am posting it here , <br>
I am trying to create python bindings for a library written in C , <br>But I am wondering as to how I am suppose to handle pointers.<br> <br>For example<br><br>for the C function, <br>int * analyse_row (int length, unsigned char *data), <br>
<br><br>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<br><font color="#888888">-- <br>A-M-I-T S|S<br>
</font><br>_______________________________________________<br>Cython-dev mailing list<br><a href="mailto:Cython-dev@codespeak.net">Cython-dev@codespeak.net</a><br><a href="http://codespeak.net/mailman/listinfo/cython-dev" target="_blank">http://codespeak.net/mailman/listinfo/cython-dev</a><br>
<br></blockquote></div><br>