blob: 10100c9280d247f43209ee812608ed1dd159d321 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/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 ;
}
|