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

  1. @node _dos_close, dos
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <dos.h>
  6.  
  7. unsigned int _dos_close(int handle);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This is a direct connection to the MS-DOS close function call (%ah = 0x3E).
  13. This function closes the specified file.
  14.  
  15. @xref{_dos_open}. @xref{_dos_creat}. @xref{_dos_creatnew}.
  16. @xref{_dos_read}. @xref{_dos_write}.
  17.  
  18. @subheading Return Value
  19.  
  20. Returns 0 if successful or DOS error code on error (and sets @var{errno}).
  21.  
  22. @subheading Example
  23.  
  24. @example
  25. int handle;
  26.  
  27. _dos_creat("FOO.DAT", _A_ARCH, &handle);
  28. ...
  29. _dos_close(handle);
  30. @end example
  31.