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

#include <skalibs/buffer.h>

ssize_t buffer_put (buffer *b, char const *s, size_t len)
{
  size_t w = 0 ;
  if (!buffer_putall(b, s, len, &w)) return -1 ;
  return w ;
}