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

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

_dos_commit

Syntax

 
#include <dos.h>

unsigned int _dos_commit(int handle);

Description

This is a direct connection to the MS-DOS commit function call (%ah = 0x68). This function flushes DOS internal file buffers to disk.

Return Value

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

Portability

ANSI/ISO C No
POSIX No

Example

 
_dos_write(handle, buffer, 1000, &result);
_dos_commit(handle);
_dos_close(handle);

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004