delorie.com/djgpp/doc/libc/libc_281.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#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.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 |
do_file(dup(fileno(stdin))); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |