qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_dos_write
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _dos_write routine uses system call 0x40 to write data to the
     file referenced by <handle>; <count> bytes of data from the buffer
     to which <buffer> points are written to the file. The integer that
     <numwrt> points to is the number of bytes actually written, which
     may be less than the number requested.
 
     Do not use the DOS interface routines in conjunction with the
     console, low-level, or stream I/O routines.
 
     Return Value
 
     If successful, the function returns 0. Otherwise, it returns the
     DOS error code and sets errno to either EACCES or EBADF.
                                    -♦-