I’m converting a C code into a Python code that uses a .dll file. The syntax for accessing the commands from the DLL is given below: C code Pointer to the odbm data structure is as follows: C code used to access the dll command: The python code that I converted according to the above C code is as follows:
Tag: pointers
Access a global pointer in C from python using ctypes
I know that if I have a global variable (let’s say a double called N) I can read it using: but what if my variable is a pointer? How can I read the contents of the pointer in to a python list? To be clearer, N is declared in the following way in the shared library: Answer Given this (Windows)