I have C code that I am trying to get from ctypes in python. A specific function looks something like this:
float *foo(void) { static float bar[2];
I know this is not an ideal way to write C, but it does the job in this case. I'm struggling to write python to get the two floats contained in the answer. I am fine with return values, which are single variables, but I cannot work with ctypes docs, how to handle an array pointer.
Any ideas?
source share