summaryrefslogtreecommitdiff
path: root/src/libstddjb/siovec_from_iovec.c
blob: ffc05083eeebb687bcc710574fd25cdd83731983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <sys/types.h>
#include <sys/uio.h>
#include <skalibs/siovec.h>

void siovec_from_iovec (siovec_t *v, struct iovec const *iov, unsigned int n)
{
  while (n--)
  {
    v[n].s = iov[n].iov_base ;
    v[n].len = iov[n].iov_len ;
  }
}