title: Are fprintf and fscanf reentrant when using different file handles
body: <p>Can I have 2 threads in the same process calling fprintf or fscanf at the same time?</p>
  
  <p>One stream is written to by the first thread and is read by the second thread and the other  stream is read by the first thread and is written to by the second thread. So, I don't have a situation of simultaneous writes or simultaneous reads to the same stream.</p>
  
  <p>If the answer is no - Do I have an reentrant alternative in the printf/scanf family?</p>
  
  <p>This questions follows some comments in: <a href="https://stackoverflow.com/questions/6527601/thread-communication-via-printf-and-scanf-linux">Thread communication via printf and scanf (linux)</a></p>