summaryrefslogtreecommitdiff
path: root/src/libdatastruct/genqdyn_init.c
blob: 08e33709d16fb9955e57e38c7828ff2d382c485f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <skalibs/stralloc.h>
#include <skalibs/genqdyn.h>

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 ;
}