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

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

int genwrite_put_bufalloc (void *target, char const *s, unsigned int len)
{
  register bufalloc *ba = target ;
  return bufalloc_put(ba, s, len) ? (int)len : -1 ;
}