skalibs

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

genwrite_put_bufalloc.c (252B)


      1 /* ISC license. */
      2 
      3 #include <sys/types.h>
      4 #include <skalibs/bufalloc.h>
      5 #include <skalibs/genwrite.h>
      6 
      7 ssize_t genwrite_put_bufalloc (void *target, char const *s, size_t len)
      8 {
      9   return bufalloc_put((bufalloc *)target, s, len) ? (ssize_t)len : -1 ;
     10 }