home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzclsfil.c │
- │Close a file, given it's "handle". │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- jzclsfil(fhandle)
- int fhandle;
- {
- union REGS sreg,dreg;
-
- sreg.x.bx = fhandle;
- sreg.h.ah = 0x3e;
- intdos(&sreg,&dreg);
- if (dreg.x.cflag & 1 == 1) return(-1);
- else return(0);
- }