A simplified version of the standard Unix cat utility in C99, using nested  loops with blocking reads and writes.