| www.delorie.com/djgpp/doc/libc-2.01/libc_242.html | search |
#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.
do_file(dup(fileno(stdin)));
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |