dhess / c-ringbuf Goto Github PK
View Code? Open in Web Editor NEWA ring buffer implemented in C
License: Other
A ring buffer implemented in C
License: Other
Can it be used in a multi-producer and multi-consumer thread environment?
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 match is at index 0.
visual studio 2017, stand libraries.
If compiling on Windows under Visual Studio, build fails due to missing ssize_t definition
Attempt to compile c-ringbuf under Visual Studio
ssize_t is a POSIX extension and therefore not available under VS
What I want is:
However, I am not sure how to use it. Is there any simple example?
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
^~~~~~~
Hi, thanks for this elegant lib.
Just trying to use this in an ESP8266 arduino project. The above definition is preventing compilation.
It seems that it does like types to use the same name as the struct it is pointing to, I tried to change the type name, things seems to start to work, but it's really messy. Could you shed some light on how to fix this? Not sure if this is related, I can see -std=gnu++17 flag in detailed compile log.
Regards
tl;dr: CC0 has a No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
clause that cannot be considered FOSS.
I'd like to package this for Fedora, but we had a change regarding CC0 in 2022: https://lists.fedoraproject.org/archives/list/[email protected]/message/RRYM3CLYJYW64VSQIXY6IF3TCDZGS6LM/
I would appreciate it if you could relicense it under an OSI-approved license (MIT, 0BSD, The Unlicense, Apache-2.0, etc.) at your favor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.