delorie.com/djgpp/doc/libc/libc_162.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_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.

See section _dos_open. See section _dos_creat. See section _dos_creatnew. See section _dos_read. See section _dos_write.

Return Value

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

Portability

ANSI/ISO C No
POSIX No

Example

 
int handle;

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

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004