Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_text/tests/detect_corpus/c/header.txt

608 bytes, 1 run

created by r1870400018:11934, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1#ifndef RINGBUF_H
2#define RINGBUF_H
3
4#include <stddef.h>
5#include <stdint.h>
6#include <stdbool.h>
7
8typedef struct ringbuf ringbuf_t;
9
10ringbuf_t *ringbuf_create(size_t capacity, size_t elem_size);
11void ringbuf_destroy(ringbuf_t *rb);
12bool ringbuf_push(ringbuf_t *rb, const void *data);
13bool ringbuf_pop(ringbuf_t *rb, void *out);
14size_t ringbuf_count(const ringbuf_t *rb);
15size_t ringbuf_capacity(const ringbuf_t *rb);
16bool ringbuf_is_empty(const ringbuf_t *rb);
17bool ringbuf_is_full(const ringbuf_t *rb);
18void ringbuf_clear(ringbuf_t *rb);
19
20#endif /* RINGBUF_H */