ctypes and unsigned char*
Diez B. Roggisch
deets at nospam.web.de
Sun Aug 19 14:35:44 EDT 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:
c_ubyte
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.
Diez
More information about the Python-list
mailing list