home *** CD-ROM | disk | FTP | other *** search
- include compiler.inc
- ttl CLOSE, 1.04, 08-30-86, clr
-
- ;low-level file closer
-
- dseg
- exterr
-
- cseg
- procdef close, <<handle, word>>
-
- xor ax,ax
- moverr ax
- mov bx,handle ;pick up handle
- mov ax,3E00h
- int 21h ;have DOS close it
- jnc ok
- moverr ax ;save any error
- mov ax,-1
- jmp short err ;return error code if error
- ;
- ok:
- xor ax,ax ;return NULL if ok
- err:
- pret
- ;
- pend close
-
- finish