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

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

int genqdyn_unpush (genqdyn *g)
{
  if (g->queue.len < g->esize) return (errno = EINVAL, 0) ;
  g->queue.len -= g->esize ;
  return 1 ;
}