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

#include <skalibs/cbuffer.h>
#include <skalibs/siovec.h>

unsigned int cbuffer_putv (cbuffer_t *b, siovec_t const *v, unsigned int n)
{
  siovec_t vdest[2] ;
  cbuffer_wpeek(b, vdest) ;
  return cbuffer_WSEEK(b, siovec_deal(vdest, 2, v, n)) ;
}