Short version: How can I get the address that a ctypes pointer points to?
Long version:
I have registered a python function as a callback with a C library. The C library expects function signature of void (*p_func)(char stat, char * buf, short buf_len)
so I register an appropriate python function. When I get into the python function, I want to know the memory address pointed to by buf
. How can I do this?