summaryrefslogtreecommitdiff
path: root/src/libstddjb/genwrite_put_stralloc.c
blob: 14583fbf57a00e102ff9699287994543da4509e7 (plain)
1
2
3
4
5
6
7
8
9
10
/* 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)
{
  return stralloc_catb((stralloc *)target, s, len) ? (ssize_t)len : -1 ;
}