![]() |
![]() |
![]() |
Copy a given number of structures
#include <string.h> size_t memcpyv( const struct iovec *dst, int dparts, int doff, const struct iovec *src, int sparts, int soff );
libc
The function memcpyv() copies data pointed to by the src iov, starting at offset soff, to dst structures, starting at offset doff. The number of iov parts copied is specified in sparts and dparts.
The number of bytes copied.
#include <stdio.h> #include <string.h> #include <stdlib.h> int main( void ) { const struct iovec *dest, *source; int dparts, doffset, sparts, soffset; size_t nbytes; nbytes = memcpyv ( dest, dparts, doffset, source, sparts, soffset ); printf ( "The number of bytes copied is %d. \n", nbytes ); return EXIT_SUCCESS; }
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |