title: Ctypes read data from a double pointer
body: <p>I am working on a C++ Dll with C wrapper and I am creating a Python wrapper for future user (I discover ctypes since monday). One of the method of my Dll (because it is a class) return an <code>unsigned short **</code>, call <code>data</code>, which corresponds to an image. On C++, I get the value of a pixel using <code>data[row][column]</code>.</p>
  
  <p>I create in Python a function on the following model :</p>
  
  <pre><code>mydll.cMyFunction.argtypes = [c_void_p]
  mydll.cMyFunction.restype = POINTER(POINTER(c_ushort))
  </code></pre>
  
  <p>When I call this function, I have <code>result = &lt;__main__.LP_LP_c_ushort at 0x577fac8&gt;
  </code> and when I try to see the data at this address (using <code>result.contents.contents</code>) I get the correct value of the first pixel. But I don't know how to access values of the rest of my image. Is there a easy way to do something like C++ (<code>data[i][j]</code>) ?</p>