skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

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 }