Arguments:

The offset into data represented by the dst array to start copying to.

src

An array of iovec structures that you want to copy the
data from.

sparts

The number of entries in the src array.

soff

The offset into data represented by the src array to start copying from.

Library:

libc

Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.

Description:

The memcpyv() function copies
data pointed to by the src I/O vector,
starting at offset soff,
to the dst I/O vector, starting at offset doff.
The number of parts in each I/O vector is specified by
sparts and dparts.

Returns:

The number of bytes copied.

Examples:

This example copies data from a two-part I/O vector, starting at offset 5, into a three-part vector, starting
at offset 3: