ctypes and unsigned char*

Diez B. Roggisch deets at nospam.web.de
Sun Aug 19 20:35:44 CEST 2007

oliver.andrich at gmail.com schrieb:
> Hi,
> can anybody with ctypes experience tell me, how to handle a C function
> that returns an unsigned char*? Obviously it is not a restype of
> c_char_p.

 From the docs:


     Represents the C unsigned char datatype, it interprets the value as 
small integer. The constructor accepts an optional integer initializer; 
no overflow checking is done.


More information about the Python-list mailing list