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 | |
| 8 | typedef struct ringbuf ringbuf_t; |
| 9 | |
| 10 | ringbuf_t *ringbuf_create(size_t capacity, size_t elem_size); |
| 11 | void ringbuf_destroy(ringbuf_t *rb); |
| 12 | bool ringbuf_push(ringbuf_t *rb, const void *data); |
| 13 | bool ringbuf_pop(ringbuf_t *rb, void *out); |
| 14 | size_t ringbuf_count(const ringbuf_t *rb); |
| 15 | size_t ringbuf_capacity(const ringbuf_t *rb); |
| 16 | bool ringbuf_is_empty(const ringbuf_t *rb); |
| 17 | bool ringbuf_is_full(const ringbuf_t *rb); |
| 18 | void ringbuf_clear(ringbuf_t *rb); |
| 19 | |
| 20 | #endif /* RINGBUF_H */ |