On Apr 18, 2008, at 4:00 PM, Johannes Wienke wrote:
Am 04/19/2008 12:37 AM schrieb Robert Bradshaw:
Try doing something like
cdef extern from *:
    ctypedef char* const_char_ptr "const char*"
cdef foo_c(const_char_ptr s):
    print s
foo_c("yo")

Thank you very much, that works. :)


You're welcome. This would be a good tip to add to the wiki at http:// wiki.cython.org/

- Robert

Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to