genwrite_put_stralloc.c (221B)
1 /* ISC license. */ 2 3 #include <skalibs/stralloc.h> 4 #include <skalibs/genwrite.h> 5 6 ssize_t genwrite_put_stralloc (void *target, char const *s, size_t len) 7 { 8 return stralloc_catb((stralloc *)target, s, len) ? len : -1 ; 9 }