home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
387b.lha
/
dice_v2.02
/
lib
/
fd
/
fdtofh.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-05-30
|
322 b
|
27 lines
/*
* FDTOFH.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#include <stdio.h>
#include <fcntl.h>
#include <ioctl.h>
#include <errno.h>
void *
fdtofh(fd)
int fd;
{
_IOFDS *d;
if (d = __getfh(fd)) {
if (d->fd_Exec)
return(NULL);
return((void *)d->fd_Fh);
}
return(NULL);
}