home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / PMC101.ZIP / LIBSRC.ZIP / FILECLOS.C (.txt) < prev    next >
C/C++ Source or Header  |  1994-06-22  |  305b  |  20 lines

  1. #include "pmc.h"
  2.  
  3. long __pascal fileclose (WORD handle)
  4. {
  5.   REGSTRUCT rs;
  6.   int r;
  7.  
  8.   rs.w.FLAGS = rs.d.SSSP = 0;
  9.   rs.w.BX = handle;
  10.   rs.b.AH = 0x3e;
  11.  
  12.   if ((r = xlt_simrmint (0x21, &rs, 0)) < 0)
  13.     return r;
  14.  
  15.   if (rs.w.FLAGS & fCF)
  16.     return rs.d.EAX | 0xffff0000;
  17.   return 0;
  18. }
  19.  
  20.