home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
DUP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-04
|
291b
|
20 lines
#include <stdio.h>
#include <osbind.h>
#include <errno.h>
int dup(handle)
int handle;
{
register int rv;
if((rv = Fdup(handle)) < (-3))
errno = rv;
return(rv);
}
int dup2(handle1, handle2)
int handle1, handle2;
{
return(errno = Fforce(handle2, handle1));
}