skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

siovec_len.c (196B)


      1 /* ISC license. */
      2 
      3 #include <sys/uio.h>
      4 #include <skalibs/siovec.h>
      5 
      6 size_t siovec_len (struct iovec const *v, unsigned int n)
      7 {
      8   size_t w = 0 ;
      9   while (n--) w += v[n].iov_len ;
     10   return w ;
     11 }