In C, long is 64 bit on a 64 bit system. Is this reflected in Python’s ctypes module?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The size of
longdepends on the memory model. On Windows (LLP64) it is 32-bit, on UNIX (LP64) it is 64-bit.If you need a 64-bit integer, use
c_int64.If you need a pointer-sized integer, use
c_void_p(“The value is represented as integer”).