| www.delorie.com/djgpp/doc/libc-2.01/libc_129.html | search |
#include <dos.h> unsigned int _dos_close(int handle);
This is a direct connection to the MS-DOS close function call (%ah = 0x3E). This function closes the specified file.
See section _dos_open. See section _dos_creat. See section _dos_creatnew. See section _dos_read. See section _dos_write.
Returns 0 if successful or DOS error code on error (and sets errno).
int handle;
_dos_creat("FOO.DAT", _A_ARCH, &handle);
...
_dos_close(handle);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |