313bbe32f22eee43add45a8a6dc93c5e38e1843c
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crtdll/io/write.c
5 * PURPOSE: Writes to a file
6 * PROGRAMER: Boudewijn Dekker
12 #include <msvcrt/io.h>
18 size_t _write(int _fd
, const void *_buf
, size_t _nbyte
)
22 if ( !WriteFile(_get_osfhandle(_fd
),_buf
,_nbyte
,&_wbyte
,NULL
) )
26 return (size_t)_wbyte
;