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 2 weeks ago
circbuf improved circbuf 2 weeks ago
circbuf_deque allow pop without dest 2 weeks ago
matcher moved to folders, updated etc 7 years ago
meanbuf moved to folders, updated etc 7 years ago
LICENSE readme + lic 7 years ago
README.md added malloc mention in readme 7 years ago

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!