◄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. -♦-