This structure will not work correctly:
class TestA(Structure):
_fields_ = (
('ch', c_char),
('a', c_uint, 2),
('b', c_uint, 2),
('c', c_uint, 2),
('d', c_uint, 2),
)
But this one works fine:
class TestB(Structure):
_fields_ = (
('ch', c_char),
2008-05-19 05:05:56 UTC in ctypes