Access C_char_p_array_256 In Python Using Ctypes
I have a native python bridge to some C code, which returns a pointer to an array (array of structs). The struct contains some character arrays (strings). But how can I get from a
Solution 1:
The type should be c_char*256
, not c_char_p*256
, because it's a char[256]
, not a char *[256]
.
string_at(theGroupName, sizeof(theGroupName))
Post a Comment for "Access C_char_p_array_256 In Python Using Ctypes"