summaryrefslogtreecommitdiff
path: root/src/libstddjb/genwrite_put_bufalloc.c
blob: 4b5830d9ed8417c6c932a26eae0144aa4a5748b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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)
{
  register bufalloc *ba = target ;
  return bufalloc_put(ba, s, len) ? (ssize_t)len : -1 ;
}