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

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

int genwrite_put_stralloc (void *target, char const *s, unsigned int len)
{
  register stralloc *sa = target ;
  return stralloc_catb(sa, s, len) ? (int)len : -1 ;
}