home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
library
/
dos
/
database
/
btrees
/
btopnkt.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1984-12-14
|
290 b
|
17 lines
/* btopnkt */
#include <stdio.h>
#include <btextern.h>
int btopnkt ()
/* get an unused control block */
{
int i;
for (i = 1; i <= MAXFIL; ++i) {
if (btfilar[i].handle == NULL)
return (i);
} /* end for */
return ((i > MAXFIL)? - 1 : i);
}
/* end of btopnkt */