How to iterate over a ctypes array in python? -
a = ((c_char*2)*2)(('a','b'),('c','d')) out::<__main__.c_char_array_2_array_2 @ 0x47da8c8> b = [cast(i, c_char_p) in a] b out::[c_char_p('abcd'), c_char_p('cd')]
how can iterate output
out::[c_char_p('ab'), c_char_p('cd')]
Comments
Post a Comment