In C, long is 64 bit on a 64 bit system. Is this reflected in Python's ctypes module?
The size of long depends on the memory model. On Windows (LLP64) it is 32-bit, on UNIX (LP64) it is 64-bit.
long
If you need a 64-bit integer, use c_int64.
c_int64
If you need a pointer-sized integer, use c_void_p (“The value is represented as integer”).
c_void_p
1.4m articles
1.4m replys
5 comments
57.0k users