#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;
}