Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>_dos_close</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_dos_close
==========

Syntax
------

     #include <dos.h>
     
     unsigned int _dos_close(int handle);

Description
-----------

This is a direct connection to the MS-DOS close function call (%ah =
0x3E).  This function closes the specified file.

_dos_open:. _dos_creat:. _dos_creatnew:.  *Note         
_dos_read::. _dos_write:.   

Return Value
------------

Returns 0 if successful or DOS error code on error (and sets ERRNO).

Example
-------

     int handle;
     
     _dos_creat("FOO.DAT", _A_ARCH, &handle);
     ...
     _dos_close(handle);


See Also: _dos_open _dos_creat _dos_creatnew _dos_write

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson