limb 0.2.0

2024-01-09

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

SEE ALSO

siov_seek(3), siov_gather(3)

limb 0.1.0
2023-07-24
siov_off(3)