c-ringbuf
c-ringbuf copied to clipboard
A ring buffer implemented in C
-------------------------------------------------- ## Issue description ``` conflicting declaration 'typedef struct ringbuf_t * ringbuf_t; 32 typedef struct ringbuf_t *ringbuf_t ^~~~~~ note: previous declaration as 'struct ringbuf_t' 32 typedef struct ringbuf_t *ringbuf_t ^~~~~~~...
## Issue description If compiling on Windows under Visual Studio, build fails due to missing ssize_t definition ### Steps to reproduce Attempt to compile c-ringbuf under Visual Studio ### Technical...
Can it be used in a multi-producer and multi-consumer thread environment?
-------------------------------------------------- By submitting this PR, you agree to the following: - [X] This contribution is dedicated to the public domain per the [COPYING](https://github.com/dhess/c-ringbuf/blob/master/COPYING) file included in this distribution. I am...
ssize_t is a POSIX extension and therefore not available under Visual Studio. This change defines ptrdiff_t as ssize_t, which is a compatible typedef since ptrdiff_t should always be at least...
By submitting this PR, you agree to the following: - [x] This contribution is dedicated to the public domain per the [COPYING](https://github.com/dhess/c-ringbuf/blob/master/COPYING) file included in this distribution. I am waiving...
hello everyone, don't you think the fuction ringbuf_findchr should return -1 if there is no match ? Ror now it return 0 if there is no match and if the...
visual studio 2017, stand libraries.