After skimming the Ctypes API, I couldn´t figure out how to get the address of a C value. For instance, given the type t = Signed.long ptr and a value v of type t is it possible to get v’s address? The closest I could find is raw_address_of_ptr but it does require a pointer.
Thank you very much! Is it also possible to get a pointer to an existing C value (allocated in C with malloc) instead of allocating a fresh value through Ctypes.allocate?