karlmcguire / sing

Fast string ring buffers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sing

Fast string ring buffers.

usage

// create and initialize a buffer 
struct sing_buffer b;
sing_init(&b);

// push a string to the buffer
sing_push(&b, "karl");

// read a string from the buffer
char *karl = sing_shift(&b);

todo

  • concurrency/thread safe
  • more data types
  • generate uuid from array index?

About

Fast string ring buffers.

License:MIT License


Languages

Language:C 66.0%Language:Makefile 34.0%