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

#include <skalibs/buffer.h>

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