home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
FILECLOS.C
(
.txt
)
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-22
|
305b
|
20 lines
#include "pmc.h"
long __pascal fileclose (WORD handle)
{
REGSTRUCT rs;
int r;
rs.w.FLAGS = rs.d.SSSP = 0;
rs.w.BX = handle;
rs.b.AH = 0x3e;
if ((r = xlt_simrmint (0x21, &rs, 0)) < 0)
return r;
if (rs.w.FLAGS & fCF)
return rs.d.EAX | 0xffff0000;
return 0;
}