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

#include <sys/types.h>
#include <skalibs/bufalloc.h>
#include <skalibs/genwrite.h>

ssize_t genwrite_put_bufalloc (void *target, char const *s, size_t len)
{
  return bufalloc_put((bufalloc *)target, s, len) ? (ssize_t)len : -1 ;
}