title: directing output to both stdout and shared memory
body: <p>I am working on logging functionality in a embedded project in Vxworks in C.</p>
  
  <p>Here we have shared memory where we write logs and read by another device. </p>
  
  <p>Here I want all the output directed to both to shared memory and stdout i.e., serial console as well. How can we achieve this with out using any third party libraries in Vxworks  and using C language.</p>
  
  <p>Thanks for your time and inputs.</p>