siov_off(3)
limb manual
siov_off(3)
NAME
siov_off - return the byte at the given offset in an array of vectors
SYNOPSIS
#include <limb/siovec.h>
int siov_off(const struct iovec *v, unsigned int n, size_t off)
DESCRIPTION
The siov_off() function returns the byte at offset offset from the data
scattered across given array v of n vectors.
RETURN VALUE
The siov_off() function returns the offset + 1th byte of data scattered the
specified array of vectors, or -1 and set errno to indicate the error.
ERRORS
The function may fail if:
EINVAL
The value offset is invalid