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

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

ssize_t genwrite_put_stralloc (void *target, char const *s, size_t len)
{
  return stralloc_catb((stralloc *)target, s, len) ? len : -1 ;
}