From 3534b428629be185e096be99e3bd5fdfe32d5544 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Sep 2014 18:55:44 +0000 Subject: initial commit with rc for skalibs-2.0.0.0 --- src/libstddjb/bufalloc_init.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/libstddjb/bufalloc_init.c (limited to 'src/libstddjb/bufalloc_init.c') diff --git a/src/libstddjb/bufalloc_init.c b/src/libstddjb/bufalloc_init.c new file mode 100644 index 0000000..ddb6b6b --- /dev/null +++ b/src/libstddjb/bufalloc_init.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include +#include + +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 ; +} -- cgit v1.2.3