ctypes and unsigned char*

oliver.andrich at gmail.com oliver.andrich at gmail.com
Thu Aug 23 13:59:43 EDT 2007


On 23 Aug., 05:46, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
> If the result can contain nul bytes, you have to specify its size
> explicitely (else it will be truncated at the first zero). Use the
> string_at utility function:
>
> result_str = string_at(result, length)
>
> (That should work fine, I presume...)

Thank a lot, that does exactly what I expected it to do.

Best regards,
Oliver




More information about the Python-list mailing list