C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_dos_close
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _dos_close function uses system call 0x3E to close the file
     indicated by <handle>. The file's <handle> argument is returned by
     the call that created or last opened the file.
 
     Return Value
 
     The function returns 0 if successful. Otherwise, it returns the
     DOS error code and sets errno to EBADF, indicating an invalid file
     handle.
 
     Do not use the DOS interface routines in conjunction with the
     console, low-level, or stream I/O routines.
                                    -♦-