summaryrefslogtreecommitdiff
path: root/src/libstddjb/bufalloc_init.c
blob: 0d97df929ba46a6487805346de0d6bcffa9277ae (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/bufalloc.h>

void bufalloc_init (bufalloc *ba, ssize_t (*op)(int, char const *, size_t), int fd)
{
  ba->x.len = 0 ;
  ba->op = op ;
  ba->fd = fd ;
  ba->p = 0 ;
}