I’m passing a null pointer of pointers to a C function. I’m not sure how I am supposed to iterate over the array when the C function returns. How would I do that?
Copy code
val connectedDevices: CPointerVar<idevice_info_tVar> = alloc()
val connectedDevicesSize: IntVar = alloc()
idevice_get_device_list_extended(connectedDevices.ptr, connectedDevicesSize.ptr)