dhess / c-ringbuf

A ring buffer implemented in C
Other
418 stars 143 forks source link

Can you add a simple example for using this little library #12

Closed orklann closed 5 years ago

orklann commented 5 years ago

What I want is:

  1. Produce bytes to the ring buffer
  2. Consume some bytes of the ring buffer

However, I am not sure how to use it. Is there any simple example?

dhess commented 5 years ago

Yes, see my echo client/server project: https://github.com/dhess/echoev

It has an embedded version of the ring buffer code from this project. The version contained there is slightly older than the code here, but the key functionality is the same.

orklann commented 5 years ago

Ok, thank you for the help.