blob: 07ad8ea8b9b9635f3efbba964cf28207695131ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <errno.h>
#include <skalibs/kolbak.h>
int kolbak_unenqueue (kolbak_queue *q)
{
if (q->head == q->tail) return (errno = EINVAL, 0) ;
q->tail = (q->tail + q->n - 1) % q->n ;
return 1 ;
}
|