Go to the previous, next section.
size_t write(int fd, const char *buf, size_t count);
fd: [in] the file descriptor to read from.
buf: [out] the buffer where to store the data read.
count: [in] the maximum count of bytes to read.
Read up to count bytes form fd.
On success, the number of bytes read. On error, returns -1 and sets
errno
to one of the following values:
EINVAL
: the kind of object attached to fd cannot be
written to.
EBADF
, EFAULT, EPIPE, EINTR
,
EAGAIN
, ENOSPC
.
Go to the previous, next section.