skalibs

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

buffer_putv.c (219B)


      1 /* ISC license. */
      2 
      3 #include <sys/uio.h>
      4 #include <skalibs/buffer.h>
      5 
      6 ssize_t buffer_putv (buffer *b, struct iovec const *v, unsigned int n)
      7 {
      8   size_t w = 0 ;
      9   return buffer_putvall(b, v, n, &w) ? (ssize_t)w : -1 ;
     10 }