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

#include <sys/uio.h>
#include <skalibs/buffer.h>

ssize_t buffer_putv (buffer *b, struct iovec const *v, unsigned int n)
{
  size_t w = 0 ;
  return buffer_putvall(b, v, n, &w) ? (ssize_t)w : -1 ;
}