genqdyn_init.c (265B)
1 /* ISC license. */ 2 3 #include <skalibs/stralloc.h> 4 #include <skalibs/genqdyn.h> 5 6 void genqdyn_init (genqdyn *g, size_t esize, unsigned int num, unsigned int den) 7 { 8 g->queue = stralloc_zero ; 9 g->esize = esize ; 10 g->head = 0 ; 11 g->num = num ; 12 g->den = den ; 13 }