title: Redirect perror output to fprintf(stderr, " ")
body: <p>In case a system call function fails, we normally use perror to output the error message. I want to use fprintf to output the perror string. How can I do something like this: </p>
  
  <pre><code>fprintf(stderr, perror output string here);
  </code></pre>