443
edits
-
Changes
Created page with "<strong>WRITE</strong> ==SYNOPSIS== #include <unixio.h> int write(int fd, void * buf, size_t cnt) ==DESCRIPTION== <strong>Write</strong>() will write from the buffer a..."
<strong>WRITE</strong>
==SYNOPSIS==
#include <unixio.h>
int write(int fd, void * buf, size_t cnt)
==DESCRIPTION==
<strong>Write</strong>() will write from the buffer at buf up to cnt
bytes to the file associated with the file descriptor
fd. The number of bytes actually written will be
returned. EOF or a value less than cnt will be returned
on error. In any case, any return value not equal to
cnt should be treated as an error (cf. <strong>read</strong>() ).
==SEE ALSO==
open, close, read
==SYNOPSIS==
#include <unixio.h>
int write(int fd, void * buf, size_t cnt)
==DESCRIPTION==
<strong>Write</strong>() will write from the buffer at buf up to cnt
bytes to the file associated with the file descriptor
fd. The number of bytes actually written will be
returned. EOF or a value less than cnt will be returned
on error. In any case, any return value not equal to
cnt should be treated as an error (cf. <strong>read</strong>() ).
==SEE ALSO==
open, close, read