summaryrefslogtreecommitdiff
path: root/src/libstddjb/siovec_len.c
blob: 5d53e5306ff85d71eb9e718a57f0fc0e77cf5295 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/siovec.h>

unsigned int siovec_len (siovec_t const *v, register unsigned int n)
{
  register unsigned int w = 0 ;
  while (n--) w += v[n].len ;
  return w ;
}