allwrite(3)
limb manual
allwrite(3)
NAME
allwrite, allwritev - write requested amount of data to a file
SYNOPSIS
#include <limb/allreadwrite.h>
size_t allwrite(int fd, const char *data, size_t dlen) size_t allwritev(int fd, const struct iovec *v, unsigned n)
DESCRIPTION
The allwrite() function will attempt to write dlen bytes from the memory
pointed by data to the file associated with file descriptor fd.
The allwritev() function is similar only writing data as described by the
array v of n vectors.
RETURN VALUE
These functions return the number of bytes written, which may be less than dlen
(even 0) in case of error.