title: How to redirect fprintf output to C socket?
body: <p>How can I redirect <code>fprintf</code> output to a socket?</p>
  
  <p>I am editing source code which has a lot of <code>fprintf</code> calls. It logs to a file. But I would like to redirect this log to a socket. </p>
  
  <p>How can this be done?</p>