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

#include <sys/types.h>
#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 (ssize_t)w ;
}