1 2 3 4 5 6 7 8 9 10 11 12
/* ISC license. */ #include <skalibs/stralloc.h> #include <skalibs/bufalloc.h> void bufalloc_init (bufalloc_ref ba, int (*op)(int, char const *, unsigned int), int fd) { ba->x.len = 0 ; ba->op = op ; ba->fd = fd ; ba->p = 0 ; }