From ed40369c8610914085d568ec57701a035bf8dd29 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 29 Dec 2017 14:16:27 +0000 Subject: Add genqdyn --- src/libdatastruct/genqdyn_init.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/libdatastruct/genqdyn_init.c (limited to 'src/libdatastruct/genqdyn_init.c') diff --git a/src/libdatastruct/genqdyn_init.c b/src/libdatastruct/genqdyn_init.c new file mode 100644 index 0000000..08e3370 --- /dev/null +++ b/src/libdatastruct/genqdyn_init.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +#include +#include + +void genqdyn_init (genqdyn *g, size_t esize, unsigned int num, unsigned int den) +{ + g->queue = stralloc_zero ; + g->esize = esize ; + g->head = 0 ; + g->num = num ; + g->den = den ; +} -- cgit v1.2.3