home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dos / compat / d_commit.txh < prev    next >
Encoding:
Text File  |  1995-10-09  |  536 b   |  26 lines

  1. @node _dos_commit, dos
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <dos.h>
  6.  
  7. unsigned int _dos_commit(int handle);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This is a direct connection to the MS-DOS commit function call (%ah = 0x68).
  13. This function flushes DOS internal file buffers to disk.
  14.  
  15. @subheading Return Value
  16.  
  17. Returns 0 if successful or DOS error code on error (and sets @var{errno}).
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. _dos_write(handle, buffer, 1000, &result);
  23. _dos_commit(handle);
  24. _dos_close(handle);
  25. @end example
  26.