blob: 913dabbaebe04db966250d3aef9c293796193600 (
plain)
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 *ba, int (*op)(int, char const *, unsigned int), int fd)
{
ba->x = stralloc_zero ;
ba->op = op ;
ba->fd = fd ;
ba->p = 0 ;
}
|