title: How to 'catch' c printf in python with ctypes?
body: <p>I hope this is trivial and I just didn't find it in the tutorials. I am writing python code that 'supervises' c code, aka I run the  c code with ctypes from python. Now I want to 'catch' the c 'printfs' to process the data that is output by the c code. Any idea how one would do this?</p>
  
  <p>Thanks</p>