title: Simulate the Linux command tee in C
body: <p>I have to do the simulation of the command <code>tee</code> in C for Linux. How does <code>tee</code> work internally? It looks like a T-shaped pipe, so should I use a pipe? Is there a special kind of pipe?</p>