home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Trees
/
V7
/
usr
/
src
/
libc
/
stdio
/
findiop.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
|
1979-05-05
|
204 b
|
15 lines
#include <stdio.h>
FILE *
_findiop()
{
extern FILE *_lastbuf;
register FILE *iop;
for(iop = _iob; iop->_flag & (_IOREAD|_IOWRT|_IORW); iop++)
if (iop >= _lastbuf)
return(NULL);
return(iop);
}