#include <unistd.h> int dup(int old_handle);
This function duplicates the given file handle. Both handles refer to the same file and file pointer.
The new file handle, or -1 if error.
not ANSI, POSIX
do_file(dup(fileno(stdin)));
Go to the first, previous, next, last section, table of contents.