generic circular buffer implementation in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ondřej Hruška 3d96951ce3 allow pop without dest 3 年之前
circbuf improved circbuf 3 年之前
circbuf_deque allow pop without dest 3 年之前
matcher moved to folders, updated etc 10 年之前
meanbuf moved to folders, updated etc 10 年之前
LICENSE readme + lic 10 年之前
README.md added malloc mention in readme 10 年之前

README.md

Buffers

This is a collection of useful buffer modules for C programs.

  • circbuf - generic circular buffer, queue, stack
  • matcher - pattern matcher for character streams
  • meanbuf - averaging (smoothing) buffer.

Please see READMEs in the project folders for more details.

The buffers were developed for embedded microcontrollers (STM32, AVR), but can be used anywhere, they are fully portable - only requirement is malloc(). If you don't have malloc, you'll have to customize the init routines.

Pull requests to add new buffers or improve the current ones are welcome!