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

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

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